+ 2
How do I round a result to the nearest whole number.... Cos i tried casting but my result variable is printing zero
3 Answers
+ 2
Adding 0.5 and using a round() function is a common way.
+ 1
Can you show your code?
0
Aiit.. Thanks a lot Sonic... Id get back to u on this