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....



Round125


Unit:SDL_math1
Class:None
Declaration:function Round125 (InNum: double): double;

The function Round125 rounds the value InNum to the nearest value in a 1-2-5 system or a decadic multiple of it.

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



Last Update: 2012-Oct-20