Class MathUtil

java.lang.Object
tools.descartes.dlim.util.MathUtil

public final class MathUtil extends Object
Simple class for common mathematical util functions.
  • Method Details

    • formatDoubleForDecimalPlaces

      public static String formatDoubleForDecimalPlaces(double d, int decimalcount)
      Utility function to format a given double to the accuracy of decimalcount decimal places.
      Parameters:
      d - The double to be formatted.
      decimalcount - The amount of post period decimal places.
      Returns:
      The formatted double as a String.