jc_0481: Use of hard equality comparisons for floating point numbers in Stateflow
Do not use hard equality comparisons (
== Var2) with two floating-point numbers.
If a hard comparison is required, a margin of error should be defined and used in the comparison (LIMIT, in the example).
Hard equality comparisons may be done between two integer data types.
Verification and Validation
By Task > Modeling Standards for MAAB > Stateflow > Check usage of floating-point expressions in Stateflow charts
For check details, see Check usage of floating-point expressions in Stateflow charts (Simulink Check).