Important: The information in this document is obsolete and should not be used for new development.
FractToFloat
You can use the FractToFloat macro to convert a fract number to a floating-point number.
define FractToFloat(a) ((float)(a)/fract1)
a
- A
fract
number to be converted to a floating-point number.- macro result
- A floating-point number having the closest value to the
fract number.