Like string_to_float64, but the value is rounded to a float.
string_to_float :: (
arg: string
) -> (result: float, success: bool, remainder: string)
Parameters
- arg: string
Returns
- result: float
- success: bool
- remainder: string
value, ok, rest := string_to_float("1.25");
assert(ok && value == 1.25 && rest.count == 0);