qore icon indicating copy to clipboard operation
qore copied to clipboard

add strict mode for parse_float() and parse_number()

Open gamato opened this issue 9 years ago • 0 comments

What if Qore::parse_float() and Qore::parse_number() would accept 3rd arg "bool strict = False" that would turn on strict parsing that might a) return NOTHING or b) throw an exception (both in cases when input looked e.g. "1x2") ?

Atm they both silently drop non-numeric part of the input, which is surely not wanted in some / many cases.

gamato avatar Dec 22 '15 17:12 gamato