How do I round a double to 5 decimal places, without using DecimalFormat?
DecimalFormat
public static double roundNumber(double num, int dec) { return Math.round(num*Math.pow(10,dec))/Math.pow(10,dec); }