Double-precision floating-point real-world value of
fiObject in Double-Precision Format
Create a signed
fi object with values
1, a word length of 8 bits, and a fraction length of 7 bits.
a = fi([-1 1], 1, 8, 7)
a=1×2 object -1.0000 0.9922 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 8 FractionLength: 7
Find the double-precision floating-point real-world value of the stored integers of
b = double(a)
b = 1×2 -1.0000 0.9922
fiobject to view in double-precision floating-point
fi object to view in double-precision
Usage notes and limitations:
For the automated workflow, do not use explicit double or single casts in your MATLAB® algorithm to insulate functions that do not support fixed-point data types. The automated conversion tool does not support these casts. Instead of using casts, supply a replacement function. For more information, see Function Replacements.