The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Declaration:function RoundPos125 (InNum: double): double;

The function RoundPos125 rounds the value InNum to the nearest value in a 1-2-5 system (or a decadic multiple of it) which is greater than the value of InNum. If InNum is exactly a value of the 1-2-5 system, the value of InNum will be kept.

Example: The statement "y := RoundPos125(68.32);" assigns the value 100 to y, the statement "y := RoundPos125(0.432);" assigns the value 0.5

Last Update: 2012-Okt-20