Note on intValue(), longValue() and doubleValue(): we only tried
this methods on BigDecimals that where sure to contain an int, long or double.
Note on intValue() and longValue(): If you want to avoid unnoticed data loss
caused by narrowing conversion, you should use the methods intValueExact() and longValueExact()
of be.arci.math.BigDecimal and com.ibm.math.BigDecimal. be.arci.math.BigDecimal also has methods
like isIntValue() and isLongValue() for checking for exact int or long representation without
Note on doubleValue(): do you really want to go back to double from a BigDecimal?