|
I have strange behaviour with maxcsript, when i want divide 1/100 he says that it is 0 do you know whre is the problem?
|
|
|
|
Nothing strange about that at all. Working exactly as expected.
Max 4.2 through 2013.
XP-64 (SP2)
NVidia 9800GTX-512 (Driver 266.58).
Core 2 Quad Q6600 2.4GHz, 8Gb Ram, DX9.0c.
| Attachment
|
|
|
|
|
|
Guys, this IS working exactly as the help says it will.
If BOTH operands are integer, the result is integer.
If EITHER (or both) are float, the result is float.
The number of decimal places is the smallest number of places capable of displaying the result (up to a point, after which you’ll get a “scientific notation” result).
You could always force the number of decimals by using formattedPrint, though unless you’re trying to create fixed-width tabulated results it’s not going to be particularly useful.
Max 4.2 through 2013.
XP-64 (SP2)
NVidia 9800GTX-512 (Driver 266.58).
Core 2 Quad Q6600 2.4GHz, 8Gb Ram, DX9.0c.
| Attachment
|
|
|
|
|