8.1 Fract2Float
Description
Fract2Float converts a 1.31 fractional value to an IEEE floating-point single-precision value.
Prototype
float Fract2Float (fractional aVal);
Arguments
Parameters |
Description |
---|---|
aVal | 1.31 fractional number in the implicit range [-1, 1 – 2-31] |
Returns
IEEE floating-point single-precision value in range [-1, 4.656613 x 10-10].
Remarks
The conversion is performed using a hardware floating-point unit.
Source File
- flt2frct_aa.s
System resource usage
- W0 – used, not restored
- F0 – F1 used, not restored
- REPEAT instruction usage – None