Hi,
Note that given a float variable f,
Math.round(f) returns the value of
(int)Math.floor(f + 0.5f)
and given a double variable d,
Math.round(d) returns
(long)Math.floor(d + 0.5)
Hope this helps
Originally posted by Mapraputa Is:
from Poddar exam
My question: Math.round(-5.5f) does yield �5, but is it correct result (from mathematical point of view?), I forgot...