commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maj...@gmx.com
Subject [math]
Date Tue, 07 Feb 2006 09:22:12 GMT
Hi!
I have a problem with MathUtils.round();
As I've learned at school I round

8.4345 to 8.44 with 2 decimal places or
8.94345 to 8.944 with 3 decimal places.

If I use MathUtils.round()
the results will be
8.43 with MathUtils.round(8.4345,2) or
8.943 MathUtils.round(8.94345,2)

Has someone made the same experience?

Kind regards,

Markus

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message