floatValue

open override fun floatValue(exactRequired: Boolean): Float

Narrow to a float.

Parameters

exactRequired

if false, precision can be lost. If true, the current absolute value must be between Float.MAX_VALUE and Float.MIN_VALUE, with 7 or less digits of precision.

Throws

if exactRequired is true and any of the above conditions not met