Can anyone recommend an efficient way of determining whether a BigDecimal is an integer value in the mathematical sense?
BigDecimal
At present I have
You can use this (just summarizing from other answers):
private boolean isIntegerValue(BigDecimal bd) { return bd.stripTrailingZeros().scale() <= 0; }