Single-precision floating-point real-world value of
Fixed-point numbers can be represented as
or, equivalently as
single(a) returns the real-world value
fi object in single-precision floating point.
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