Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

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


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

FUNCTION Fix2Long (x: Fixed): LongInt;
The Fixed number to be converted to a long integer.
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

Get information on Apple products.
Visit the Apple Store online or at retail locations.

Copyright © 2004 Apple Computer, Inc.
All rights reserved. | Terms of use | Privacy Notice