Przejdź do głównej treści

//ERDDAP/com.cohort.util/ScriptString2/roundingParseInt

roundingParseInt

[JVM]
open fun roundingParseInt(s: String): Double

Convert a string to an int, with rounding. Leading or trailing spaces are automatically removed. This won't throw an exception if the number isn't formatted right.

Return

the int value from the String (or Double.NaN if error).

Parameters

JVM

sis the String representation of a number.