toFloat

Common
fun String.toFloat(): Float

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

Throws

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

inline fun String.toFloat(): Float

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

Throws

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

JS
inline fun String.toFloat(): Float

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

Throws

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

Native
inline fun String.toFloat(): Float

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

Throws

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