Important: The information in this document is obsolete and should not be used for new development.
Fix2Long
You can use the Fix2Long function to convert aFixed
number to aLongInt
number.
FUNCTION Fix2Long (x: Fixed): LongInt;
x
- The
Fixed
number to be converted to a long integer.DESCRIPTION
The Fix2Long function returns the long integer nearest to theFixed
number you supply in thex
parameter. Ifx
is halfway between two integers (0.5), it is rounded to the integer with the higher absolute value.