Go Down

Topic: what happens if i make a math division? (Read 411 times) previous topic - next topic

woo_oow

what happens if i make a math division wich causes a float?
e.g. 7 / 2 = 3.5 or 3 or 4
or does it crash the programm?

greetz
woo

mellis

It truncates, so 5/2 = 2 and -5/2 = -2.

Go Up