Main Content

32-bit integer to single precision float conversion

Description

Select the diagnostic action to take if Simulink®software detects a 32-bit integer value was converted to a floating-point value.

Category:Diagnostics

Settings

Default:warning

none

Simulink software takes no action.

warning

Simulink software displays a warning.

Tip

Converting a 32-bit integer value to a floating-point value can result in a loss of precision.SeeWorking with Data Typesfor more information.

Command-Line Information

Parameter:Int32ToFloatConvMsg
Value:'none'|'warning'
Default:'warning'

Recommended Settings

Application Setting
Debugging No impact
Traceability No impact
Efficiency No impact
Safety precaution warning

Related Topics