Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Operating System Utilities /
Chapter 3 - Mathematical and Logical Utilities / Mathematical and Logical Utilities Reference
Routines / Converting Among 32-Bit Numeric Types


Long2Fix

You can use the Long2Fix function to convert a LongInt number to a Fixed number.

FUNCTION Long2Fix (x: LongInt): Fixed;
x
The long integer to be converted to a Fixed number.
DESCRIPTION
The Long2Fix function returns the Fixed number equivalent to the long integer you supply in the x parameter. 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.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996