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
Comments (2)
Comment policy
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
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 :)