posted 21 years ago
The result is :
result = 2
My question is related to the comparison. The round() method receives a double and returns a long, whereas the ceil() method returns a double. Is there any rule regarding comparison of primitive types? Is the long value returned from the round() method promoted to double?
I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury