Support: floating-point numbers

Description

Specify whether to generate floating-point data and operations.

Category: Code Generation > Interface

Settings

Default: On (GUI), 'off' (command-line)

On

Generates floating-point data and operations.

Off

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.

Dependencies

  • 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.

Command-Line Information

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.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyOff (GUI), 'on' (command-line) — for integer only
Safety precautionNo impact

Related Topics