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


Fix2Long

You can use the Fix2Long function to convert a Fixed number to a LongInt 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 the Fixed number you supply in the x parameter. If x is halfway between two integers (0.5), it is rounded to the integer with the higher absolute value.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996