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 aFixednumber, you can use theFixRatiofunction. To obtain the integral portion of a number of typeFixed, typically you just use theHiWordfunction, described on page 3-33. However, you can also use theFixRoundfunction to obtain the integer nearest a fixed-point number.
Subtopics
- FixRatio
- FixRound