Support: floating-point numbers
R2026bCode generation for floating-point data
Model Configuration Pane: Code Generation / Interface
Description
The Support: floating-point numbers parameter specifies whether to generate code for floating-point data and operations on floating-point data.
The setting of this parameter must be the same for the models in a model hierarchy.
Selecting this parameter enables the Support: non-finite numbers parameter and clearing this parameter disables Support: non-finite numbers.
If you select the MAT-file logging parameter, select this parameter and the Support: non-finite numbers parameter.
Settings
On (default) | Off- On
Enables generation of floating-point data and related operations.
- Off
Disables generation of floating-point data and operations. Code generator produces pure integer code. If you clear this parameter and the code generator encounters floating-point data or expressions, an error occurs. The error message reports offending blocks and parameters.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | Off — for integer only |
| Safety precaution | No impact |
Programmatic Use
Parameter:
SupportFloatingPoint |
| Type: character vector |
Value: 'on' | 'off' |
Default:
'on' |