Closed horaceho closed 6 years ago
The Swift version gives an error for .2, i.e. decimal number without a leading zero. 0.2 is OK. How can I config MathParse to make leading zero as optional in a decimal number?
.2
0.2
It's because matchesPreconditions of NumberExtractor does not accept leading dot . as legal.
matchesPreconditions
NumberExtractor
.
Updated: Wow! You've updated it. Thanks!
The Swift version gives an error for
.2
, i.e. decimal number without a leading zero.0.2
is OK. How can I config MathParse to make leading zero as optional in a decimal number?