BigDecimal to a long. If the BigDecimal has a non-zero decimal part it is discarded. If the BigDecimal is out of the possible range for a long (64-bit signed integer) result then only the low-order 64 bits are used. (That is, the number may be decapitated.) To avoid unexpected errors when these conditions occur, use the {@link #longValueExact} method.
@return A long converted from this,truncated and decapitated if necessary.
@stable ICU 2.0
| |
| |