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 RoundNeg125 (InNum: double): double;

The function RoundNeg125 rounds the value InNum to the nearest value in a 1-2-5 system (or a decadic multiple of it) which is less 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 := RoundNeg125(68.32);" assigns the value 50 to y, the statement "y := RoundNeg125(0.432);" assigns the value 0.2

Last Update: 2012-Okt-20