private String roundToDecimalPlace ( double distance , int decimalPlace ) { numberFormat . setMaximumFractionDigits ( decimalPlace ) ; return numberFormat . format ( distance ) ; }
Rounds given number to the given decimal place