Single-Precision Design for Simulink Models
Because single precision numbers use 32 bits, they require less memory than double-precision numbers, while still offering many of the benefits of floating-point arithmetic. You can use the Single Precision Converter to automatically convert a system in a Simulink model from double precision to single precision.
The Single Precision Converter makes these changes:
Conversion of user-specified double-precision data types to single-precision data types (applies to block settings, Stateflow® chart settings, signal objects, and bus objects).
Output signals and intermediate settings using inherited data types which compile to double precision change to single-precision data types.
The converter does not change Boolean, built-in integer, or user-specified fixed-point data types. When the conversion is finished, the converter displays a table summarizing the compiled and proposed data types of the objects in the system under design.
To learn more about the tool, see Getting Started with Single Precision Converter.
Tools
Single Precision Converter | Convert double-precision system to single precision |
Functions
convertToSingle | Convert a double-precision system to single precision |
Topics
- Getting Started with Single Precision Converter
Learn the basics of using the Single Precision Converter.
- Convert a System to Single Precision
Convert a system to single precision using the Single Precision Converter.