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


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.


warning (default) | none

Simulink software displays a warning.


Simulink software takes no action.


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

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionwarning

Programmatic Use

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


  • 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