posted 17 years ago
Hi,
Math round() method will return the maximum value.
So,
--> In 5.5 it rounds to the maximum value of 6.0(return type is double)
--> In -5.5, it rounds to the value of -5.0, because -5 is greater than -6.
hope you are clear now.
" Don't be afraid of pressure. Remember that pressure is what turns a lump of coal into a diamond... " <br /> <br />Thanks & Regards...<br />Sakthi<br />SCJP1.4, OCA