Why does the MOD function from the Math Function block return unexpected results with negative inputs in Simulink?
I have a model with a MOD block. The inputs to the block are two constant values, for example -10 and 100. The output of the block is 90. I would have expected the result to be 10. Why is 90 returned?
Best Answer