Important: The information in this document is obsolete and should not be used for new development.
Converting Between Fixed-Point and Floating-Point Values
The Mathematical and Logical Utilities provide four functions that allow you to convert between fixed-point and floating-point values represented using SANE'sExtended
floating-point data type. TheFix2X
function and theX2Fix
function convert betweenFixed
andExtended
numbers. TheFrac2X
andX2Frac
functions convert betweenFract
andExtended
numbers. See Apple Numerics Manual for information about numeric data types supported by SANE.
Subtopics
- Fix2X
- X2Fix
- Frac2X
- X2Frac