src/pylib/numTypes/floats/parse_inf_nan

Search:
Group by:
Source   Edit  

Procs

func parse_inf_or_nan(ori_s: openArray[char]; res: var float): int {....raises: [],
    tags: [], forbids: [].}
a variant of _Py_parse_inf_or_nan in Python/pystrtod.c XXX: don't use parseFloat in std/parseutils currently as it does not respect sign bit of NaNs. Source   Edit  
func parse_inf_or_nan(res: var float; ori_s: openArray[char]): bool {.
    ...raises: [], tags: [], forbids: [].}

returns if successfully parses returns false when there are chars left after parsed in ori_s

XXX: don't use parseFloat in std/strutils currently as it does not respect sign bit of NaNs.

Source   Edit