Compare between StrictMatch, Math and apache FastMath - http://blog.juma.me.uk/2011/02/23/performance-of-fastmath-from-commons-math/ A round bug in Java fixed in Java7, nice reading - http://www.javacodegeeks.com/2012/04/why-mathround0499999999999999917-rounds.html