J
Jerry
I wanted to round decimals. Usually, 1.6 would be rounded to 2 and 1.4
will be rounded to 1. But I want 1.6 will be rounded to 2 and 1.4 will
also be rounded to 2; for 2.1, it will be rounded to 3 and 2.6 will be
rounded to 3. Tried to find such round function from javadoc, but was
not able to find it. Anyone knows how to round the decimals according
to the above rules?
Thanks a lot!
will be rounded to 1. But I want 1.6 will be rounded to 2 and 1.4 will
also be rounded to 2; for 2.1, it will be rounded to 3 and 2.6 will be
rounded to 3. Tried to find such round function from javadoc, but was
not able to find it. Anyone knows how to round the decimals according
to the above rules?
Thanks a lot!