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 Between Fixed-Point and Floating-Point Values


X2Fix

You can use the X2Fix function to convert an Extended number to a Fixed number.

FUNCTION X2Fix (x: Extended): Fixed;
x
The Extended number to be converted to a Fixed number.
DESCRIPTION
The X2Fix function returns the best Fixed approximation of the Extended number you supply in the x parameter. If x is greater than the maximum representable Fixed number, the X2Fix function returns $7FFFFFFF. If x is less than the negative number with the highest absolute value, X2Fix returns $80000000.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996