Go Down

Topic: what happens if i make a math division? (Read 430 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy