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. To learn more about the tool, see Getting Started with Single Precision Converter.
Single Precision Converter | Convert double-precision system to single precision |
DataTypeWorkflow.Single.convertToSingle | Convert a double-precision system to single precision |
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.