safeToFloat

fun String.safeToFloat(defaultValue: Float): Float(source)

Parses the string as an Float number and returns the result.

Since

0.1.0

Parameters

defaultValue

Return if the string is not a valid representation of a number.