‹‹ B4ck t0 Bugs
G3t Pr3m1um t0 h1d3 4ll 4ds
P0sts: 5   V1s1t3d by: 115 users
16.06.2013 - 04:14
9+8=17 17/2=8,5=~9 not 8



----
.10.

atWar Radio<3


play for fun, just for fun.
L04d1ng...
L04d1ng...
16.06.2013 - 12:34
 Amok (4dm1n)
Since when is round(8.5) = 9 ? Not in my world
L04d1ng...
L04d1ng...
16.06.2013 - 12:55
I'm Mathematician. So 8.5!=8 neither
Use Math.round pls
----
.10.

atWar Radio<3


play for fun, just for fun.
L04d1ng...
L04d1ng...
16.06.2013 - 13:32
Usually in Math 8.4 is rounded to 8 and 8.5 is rounded to 9.
----
L04d1ng...
L04d1ng...
17.06.2013 - 03:14
 Amok (4dm1n)
Well, apparently .NET by default uses the so-called banker's rounding:
http://stackoverflow.com/questions/977796/why-does-math-round2-5-return-2-instead-of-3-in-c
Which is fair enough, I guess, since it doesn't really make much difference.
L04d1ng...
L04d1ng...
atWar

About Us
Contact

Pr1v4cy | T3rms 0f s3rv1c3 | B4nn3rs | Partners

Copyright © 2024 atWar. All rights reserved.

J01n us 0n

Spr34d th3 w0rd