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
. TheLong2Fix
andFix2Long
functions convert betweenLongInt
variables andFixed
variables. TheFix2Frac
functions andFrac2Fix
functions convert betweenFixed
andFract
variables. Ordinarily, there is no need to convert betweenLongInt
andFract
variables, becauseFract
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