Package com.liferay.portal.kernel.util
Class BigDecimalUtil
Object
com.liferay.portal.kernel.util.BigDecimalUtil
- Author:
- Brian Wing Shun Chan, Wesley Gong, Calvin Keum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
static double
divide
(Number x, Number y, int scale, RoundingMode roundingMode) static boolean
eq
(BigDecimal value1, BigDecimal value2) static BigDecimal
get
(Object newValue, BigDecimal defaultValue) static boolean
gt
(BigDecimal value1, BigDecimal value2) static boolean
gte
(BigDecimal value1, BigDecimal value2) static boolean
isZero
(BigDecimal value) static boolean
lt
(BigDecimal value1, BigDecimal value2) static boolean
lte
(BigDecimal value1, BigDecimal value2) static double
static double
scale
(Number x, int scale, RoundingMode roundingMode) static BigDecimal
static double
-
Constructor Details
-
BigDecimalUtil
public BigDecimalUtil()
-
-
Method Details
-
add
-
divide
-
eq
-
get
-
gt
-
gte
-
isZero
-
lt
-
lte
-
multiply
-
scale
-
stripTrailingZeros
-
subtract
-