Important: The information in this document is obsolete and should not be used for new development.
Converting Between Fixed-Point and Integral Values
To convert the quotient of two integers to aFixed
number, you can use theFixRatio
function. To obtain the integral portion of a number of typeFixed
, typically you just use theHiWord
function, described on page 3-33. However, you can also use theFixRound
function to obtain the integer nearest a fixed-point number.
Subtopics
- FixRatio
- FixRound