بنیادی مواد پر مہارت حاصل کریں

//ERDDAP/com.cohort.util/ScriptString2/parseFloat

parseFloat

[JVM]
open fun parseFloat(s: String): Float

Parse as a float with either "." or "," as the decimal point. Leading or trailing spaces are automatically removed.

Return

the corresponding float (or Float.NaN if not properly formatted)

Parameters

JVM

sa String representing a float value (e.g., 1234.5 or 1234,5 or 1.234e3 1,234e3)