Class DecimalUtils

    • Constructor Detail

      • DecimalUtils

        public DecimalUtils()
    • Method Detail

      • round

        public static double round​(double x,
                                   int scale)
      • round

        public static double round​(double x,
                                   int scale,
                                   RoundingMode roundingMode)
      • fixSign

        public static double fixSign​(double roundedValue,
                                     double x)
      • isDifferent

        public static boolean isDifferent​(double d1,
                                          double d2,
                                          double delta)
      • isDifferent

        public static boolean isDifferent​(float f1,
                                          float f2,
                                          float delta)