Arduino Forum
>
Forum 20052010 (read only)
>
General
>
FrequentlyAsked Questions
>
what happens if i make a math division?
Print
Go Down
Pages:
[1]
Topic: what happens if i make a math division?
(Read 608 times)
previous topic

next topic
woo_oow
Guest
what happens if i make a math division?
Jun 12, 2006, 02:59 am
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
Forum Administrator
Faraday Member
Posts: 3,544
Karma: 96
[add]
Re: what happens if i make a math division?
#1
Jun 12, 2006, 11:52 pm
It truncates, so 5/2 = 2 and 5/2 = 2.
Print
Go Up
Pages:
[1]
Loading...