I am having a problem with getting accurate representations of floats in flonum.
myPI = Math.PI; then I send
myPI.toFixed(10); to the Max Window, and send
parseFloat(myPI); to another outlet patched to a flonum.
The Max Window shows 3.1415926536;
The flonum shows 3.1415927410 (while in the flonum inspector decimals are set to 10);
I can’t get the flonum to show anything better than 6 decimals.
In the flonum help window it says "Clicking in the Float Display Correction checkbox in the Interface pane of the Max Preferences Window will make the Max application round numbers and truncates them at what it guesses is the least significant digit."
But whether I check or uncheck that checkbox has no influence on the behavior of the flonum object. It only influences the behavior of message boxes (on my system anyhow):
Mac OS X 10.6.4
MacBook Pro Intel
Is it supposed to be like that, or am I doing something wrong? I mean in the flonum inspector I can set the decimals to more than six. Is it really only supposed to work correctly for up to six decimals?
C74 RSS Feed | © Copyright Cycling '74