longValue

open override fun longValue(exactRequired: Boolean): Long

Convert the current value to Long.

Parameters

exactRequired

True causes an ArithmeticException to be thrown if there is any loss of precision during the conversion, either side of the decimal. False truncates any precision to the right of the decimal.