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 aFixednumber to aLongIntnumber.
FUNCTION Fix2Long (x: Fixed): LongInt;
x- The
Fixednumber to be converted to a long integer.DESCRIPTION
The Fix2Long function returns the long integer nearest to theFixednumber you supply in thexparameter. Ifxis halfway between two integers (0.5), it is rounded to the integer with the higher absolute value.