float

open val float: Float(source)

Gets the value as a float. Integers will be converted to float. The value true is returned as 1.0, false as 0.0. Returns 0.0 if the value is null or is not a numeric value.