How to write MaxScript fractions math?

As the titke, how to write MaxScript fractions mathematics?

es:

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Garp's picture

Hi Michele! Merry Christmas

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's picture

Hi Garp!!! Merry Christmas to

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 :)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.