Basic module

string_to_float64_new

procedureSource

Like string_to_float64, with the success flag first.

string_to_float64_new :: (
    _s: string
) -> (success: bool, result: float64, remainder: string)

Parameters

_s: string

Returns

success: bool
result: float64
remainder: string
Example↗
ok, value, rest := string_to_float64_new("0.5!");
assert(ok && value == 0.5 && rest == "!");

See also