Double-precision floating-point real-world value of
View Stored Integer of
fi Object 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.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
fi object to view in double-precision floating-point
fi object to view in double-precision
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
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.
Introduced before R2006a