Can anyone recommend an efficient way of determining whether a BigDecimal is an integer value in the mathematical sense?
BigDecimal
At present I have
Divide the number by 1 and check for a remainder. Any whole number should always have a remainder of 0 when divided by 1.
public boolean isWholeNumber(BigDecimal number) { return number.remainder(BigDecimal.ONE).compareTo(BigDecimal.ZERO) == 0; }