shortValue

open override fun shortValue(exactRequired: Boolean): Short

Convert the current value to Short.

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.