toDouble

Common
fun String.toDouble(): Double

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

Throws

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

inline fun String.toDouble(): Double

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

Throws

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

JS
fun String.toDouble(): Double

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

Throws

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

Native
inline fun String.toDouble(): Double

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

Throws

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