parseFloat

fun parseFloat(str: String?, defaultValue: Float): Float(source)

Returns str as a float, or defaultValue when it is null or malformed.


Returns str as a float, or 0.0 when it is malformed.