Hey, I’ve noticed funny behavior when connecting output of the Power node to the input of the Mod node. Basically, when connected like this Mod returns “x mod x = x” instead of “x mod x = 0”. Check out the 7th slice here:
Attached you can find a small patch with bug reproduced. It works only on some range of values though, for example try to swap 2 and 3 in the Power node input in the attached patch — it’s gonna return correct value.
Switching a value with switch, or manually connecting the IObox fixes output of the Mod to the correct one, so the problem is the output of the Power node.
yep. looks like a precision glitch… not much one can do here. floating point power calculation is a complicated process based on series and summation. but we can have a look what the old delphi code does here exactly…