Class FormatUtils


  • public class FormatUtils
    extends Object
    Utility methods for formatting doubles
    • Constructor Detail

      • FormatUtils

        public FormatUtils()
    • Method Detail

      • format5

        public static String format5​(double value)
        Outputs a double to five decimal places
        Parameters:
        value - double value to be output
        Returns:
        String containing the double output to five decimal places
      • format6

        public static String format6​(double value)
        Outputs a double to six decimal places
        Parameters:
        value - double value to be output
        Returns:
        String containing the double output to six decimal places