Important: The information in this document is obsolete and should not be used for new development.
Long2Fix
You can use theLong2Fixfunction to convert aLongIntnumber to aFixednumber.
FUNCTION Long2Fix (x: LongInt): Fixed;
x- The long integer to be converted to a
Fixednumber.DESCRIPTION
TheLong2Fixfunction returns theFixednumber equivalent to the long integer you supply in thexparameter. Ifxis greater than the maximum representable fixed-point number, theLong2Fixfunction returns $7FFFFFFF. Ifxis less than the negative number with the highest absolute value,Long2Fixreturns $80000000.