safeToDouble

fun String.safeToDouble(defaultValue: Double): Double(source)

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

Since

0.1.0

Parameters

defaultValue

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