Converting Among 32-Bit Numeric Types
The Operating System includes functions that allow you to convert among variables of typeLongInt,Fixed, andFract. TheLong2FixandFix2Longfunctions convert betweenLongIntvariables andFixedvariables. TheFix2Fracfunctions andFrac2Fixfunctions convert betweenFixedandFractvariables. Ordinarily, there is no need to convert betweenLongIntandFractvariables, becauseFractvariables 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
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help