Is it normal that the mod(x,y) function doesn't yield the same results as the Quotient & Remainder.vi when x is negative?
For instance, if you use the Quotient & Remainder.vi with x=-3.7 and y=1, the results are:
x-y*floor(x/y)=0.3 and floor(x/y)=-4
which is consistent and also what I expected.
However, if you compute mod(x,y), the result is -0.7, whereas the floor(x/y) function yields -4, which is inconsistent.
Shouldn't mod(x,y) be equivalent to x-y*floor(x/y)?
Thanks if you can help.