question: public static double round ( double number , int nDigits ) { return ( double ) Math . round ( number * Math . pow ( 10 , nDigits ) ) / Math . pow ( 10 , nDigits ) ; }
target:  Return the double value number rounded to nDigits digits after the decimal point. If ndigits is omitted, it defaults to zero. The result is a double.