qore icon indicating copy to clipboard operation
qore copied to clipboard

FixedLengthUtil should throw an error if int, float, or number fields contain invalid characters (such as alphabetic chars) to ensure that the output is correct

Open davidnich opened this issue 9 years ago • 2 comments

this is "invisible" because it's in unreleased functionality

davidnich avatar Dec 21 '15 21:12 davidnich

What if Qore::parse_float() and Qore::parse_number() would accept 3rd arg "bool strict = False" that would turn on strict parsing that might throw an exception (if input looked e.g. "1x2") ?

Otherwise implementing this feature is unnecessary "complex" for floats and numbers (while it's easy for integers).

gamato avatar Dec 22 '15 16:12 gamato

Btw, I think this is more a bug than a feature.

gamato avatar Dec 28 '15 10:12 gamato