Class MathUtil
java.lang.Object
com.ssgllc.fish.service.util.registered.MathUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
ceil
(double x) createIntRange
(Integer minValue, Integer maxValue) static double
floor
(double x) static BigDecimal
getBigDecimalFromObject
(Object value) static double
random()
static double
round
(double x, int scale) static BigDecimal
toBigDecimal
(int value) static int
toIntExact
(long value)
-
Constructor Details
-
MathUtil
public MathUtil()
-
-
Method Details
-
round
public static double round(double x, int scale) -
ceil
public static double ceil(double x) -
floor
public static double floor(double x) -
random
public static double random() -
toIntExact
public static int toIntExact(long value) -
toBigDecimal
-
createIntRange
-
getBigDecimalFromObject
-