omg the most frustrating bug I have ever had the opportunity to find...
Code:
// eel script
x = 92.798866 % 0.2;
x == 0 ? (
ShowConsoleMsg(sprintf(#,"x = %{x}f, BUG!! This message should not appear!"));
);
modulo is broken. sometimes it works, sometimes it doesn't, not sure what the pattern is.
edit: ugh, damnit, I need to RTFM.
Code:
numerator % denominator -- divides two values as integers and returns the remainder.