Main Content

32-bit integer to single precision float conversion

Diagnostic action to take when 32-bit integer value converted to floating-point value

Model Configuration Pane: Diagnostics / Type Conversion

Description

The 32-bit integer to single precision float conversion parameter specifies the diagnostic action to take when Simulink® software detects a 32-bit integer value was converted to a floating-point value.

Settings

warning (default) | none
warning

Simulink software displays a warning.

none

Simulink software takes no action.

Tips

Converting a 32-bit integer value to a floating-point value can result in a loss of precision. See Working with Data Types for more information.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionwarning

Programmatic Use

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

Limitations

  • The software only detects parameter conversions and not signal conversions.

  • The software only detects conversions during code generation and not simulation.

Version History

Introduced in R2008a