- java.lang.Object
-
- com.appslandia.common.utils.DecimalUtils
-
-
Constructor Summary
Constructors Constructor Description DecimalUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublefixSign(double roundedValue, double x)static booleanisDifferent(double d1, double d2, double delta)static booleanisDifferent(float f1, float f2, float delta)static doubleround(double x, int scale)static doubleround(double x, int scale, RoundingMode roundingMode)
-
-
-
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)
-
-