![]() |
Long2Fix |
||||
Header: | FixMath.h | Carbon status: | Supported | |
Converts a LongInt number to a Fixed number.
Fixed Long2Fix ( SInt32 x );
The long integer to be converted to a Fixed number.
The Fixed number equivalent to the long integer x. If x is greater than the maximum representable fixed-point number, the Long2Fix function returns $7FFFFFFF. If x is less than the negative number with the highest absolute value, Long2Fix returns $80000000.
Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.
© 2000 Apple Computer, Inc. (Last Updated 4/14/2000)