Pages: [1]   Go Down
Author Topic: what happens if i make a math division?  (Read 381 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 37
shrz
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 11
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: