Main Content

Support only purely-integer numbers

Detection of floating-point code

Description

App Configuration Pane: Speed

Configuration Objects: coder.EmbeddedCodeConfig

The Support only purely-integer numbers parameter specifies whether the code generator supports floating-point data and operations. By default, the code generator generates code for these expressions. If you select this parameter, the code generator produces an error if there are floating-point data or operations in the MATLAB® code.

Dependencies

  • Selecting this parameter disables the Support nonfinite numbers parameter.

  • Clearing this parameter enables the Support nonfinite numbers parameter.

Settings

Off

This value is the default value.

The code generator allows floating-point data and operations.

On

The code generator does not allow floating-point data or operations. If the code generator detects floating-point data or operations, code generation ends with an error.

Programmatic Use

Property: PurelyIntegerCode
Values: false | true
Default: false

Version History

Introduced in R2011a