Specify whether to generate floating-point data and operations.
Category: Code Generation > Interface
Default: On (GUI), 'off'
(command-line)
Generates floating-point data and operations.
Generates pure integer code. If you clear this option, an error occurs if the code generator encounters floating-point data or expressions. The error message reports offending blocks and parameters.
This option only appears for ERT-based targets.
This option requires an Embedded Coder® license when generating code.
Selecting this parameter enables Support: non-finite numbers and clearing this parameter disables Support: non-finite numbers.
This option must be the same for top-level and referenced models.
When you select parameter MAT-File Logging, you must also select Support: non-finite numbers and Support: floating-point numbers.
Parameter:
PurelyIntegerCode |
Type: character vector |
Value:
'on' | 'off' |
Default:
'off' |
Note
The command-line values are reverse of the settings values. The value
'on'
in the command line corresponds to the description of
“Off” in the settings section. The value 'off'
in the
command line corresponds to the description of “On” in the settings
section.
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | Off (GUI), 'on' (command-line) — for integer
only |
Safety precaution | No impact |