public static final double round ( double value , double precision ) { precision = Math . pow ( 10 , precision ) ; return Math . round ( value * precision ) / precision ; }
Utility method used to round a double to the given precision .