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

The Operating System includes functions that allow you to convert among variables of type LongInt, Fixed, and Fract. The Long2Fix and Fix2Long functions convert between LongInt variables and Fixed variables. The Fix2Frac functions and Frac2Fix functions convert between Fixed and Fract variables. Ordinarily, there is no need to convert between LongInt and Fract variables, because Fract variables are used only to represent very small numbers. If you wish to do so, however, you can combine functions shown in this section.


Subtopics
Long2Fix
Fix2Long
Fix2Frac
Frac2Fix

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996