Documentation should make it clear that NumberOptions needs to be set to AllowSign in order to parse negative values
pmarflee opened this issue · comments
Paul Marfleet commented
The Integer and Decimal examples in the documentation are incorrect. They give the impression that Terms.Integer()
and Terms.Decimal()
will successfully parse negative values. However, parsing negative values requires NumberOptions
to be set to AllowSign
, e.g. Terms.Integer(NumberOptions.AllowSign)
.
Hisham Bin Ateya commented
Please submit a PR
Sébastien Ros commented
I'll check the source to be sure it's intentional. Seems weird. Might be a bug more than a lack of documentation.
Sébastien Ros commented
I fixed the documentation, this was intentional.