As the titke, how to write MaxScript fractions mathematics?
es:
![]()
Forum topic · General Scripting
By Michele71 · 2010-12-25
As the titke, how to write MaxScript fractions mathematics?
es:
![]()
Garp · 2010-12-26
Hi Michele!
Merry Christmas :)
If you want decimal fractions, add '.0' after at least one of the two operands per fraction.
You don't need to put parentheses around them since mutplication/division takes precedence over addition/subtraction.
Your example would be writen; 1.0/4 + 1.0/2
Michele71 · 2010-12-27
Hi Garp!!!
Merry Christmas to you :)
Thanks!! :) :) is what I was looking for!!
I had found this solution:
a= 1/4 as float
b = 1/2 as float
a+b
....too forced!!!
TYhanks again Garp :)