I'm working on set of boxes for controlling floating-point number entry into Max. I've come across what seems to be a rounding error in floating-point number boxes, and I was wondering if this was a mistake on my part or whether it's a bug.
I've attached the files below. To make the patch work you type an integer into the left hand side of the number and scroll through the decimal portion using the + and - signs.
The error gets larger the higher a value you use, so it doesn't happen at 1 - 10, starts at around 20 and by the time you get to 100,000 is around 0.002.
I was wondering if anyone else has come across this and if there's a fix.