//ERDDAP/com.cohort.util/ScriptString2/parseDouble
parseDouble
[JVM]
open fun parseDouble(s: String): Double
Convert a string to a double. Leading or trailing spaces are automatically removed. This accepts hexadecimal integers starting with "0x". Whole number starting with '0' (e.g., 012) is treated as decimal (not octal as Java would). This won't throw an exception if the number isn't formatted right.
Return
the double value from the String (a finite value, Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY, or Double.NaN if error).
Parameters
JVM
s | is the String representation of a number. |