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



IntNeg


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

The Pascal functions int and trunc do not process negative and positive numbers in the same way (they are biased towards 0.0), which can cause trouble in some circumstances. Therefore IntNeg consistently produces the next smaller integer value, regardless of the sign of the number InNum.



Last Update: 2012-Oct-20