Bug: Result of rem(x, y) block operating on integers differs from Simulink if y is 0
| Submitted | Product | Status | ||
|---|---|---|---|---|
| 2022-01-14 | Reactis for Simulink | Resolved in 2021.2.1 (released May 04, 2022; release notes) Resolved in 2021.0.3 (released May 04, 2022; release notes) | ||
|
If a "Math" block is configured to compute rem(x,y) and both x and y are integer types then Reactis behavior differs from Simulink if y=0: - if the "Wrap on overflow" setting for the model is set to "error" * Simulink produces a "division by zero" error * Reactis outputs the value of "x" - if the "Wrap on overflow" setting for the model is set to "ignore" or "warning" * Simulink outputs the value 0 * Reactis outputs the value of "x" | ||||