Basic module

string_to_float

procedure · 1 overloadSource

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
ExampleOpen in playground ↗
value, ok, rest := string_to_float("1.25");
assert(ok && value == 1.25 && rest.count == 0);

See also