getFloat

open fun getFloat(defaultValue: Float): Float

Gets the contained values as a float.

Return

The value as a float, or the defaultValue if the value is not a number.

Parameters

defaultValue

The default value if the contained value is not a number.