Important: The information in this document is obsolete and should not be used for new development.
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