pysimdjson icon indicating copy to clipboard operation
pysimdjson copied to clipboard

Support for Decimal

Open gaborbernat opened this issue 5 years ago • 3 comments

I've read in the documentation there's plan to support this. What status are these plans in? Thanks.

gaborbernat avatar Aug 19 '20 13:08 gaborbernat

Can you clarify what you're looking for? The library currently parses floats just fine.

TkTech avatar Aug 19 '20 18:08 TkTech

Ability to parse floats as decimal and encode decimals within json objects.

gaborbernat avatar Aug 19 '20 23:08 gaborbernat

The usefulness of this feature is blocked by upstream issues, such as https://github.com/simdjson/simdjson/issues/425#issuecomment-607174635. Without support for a new tape type to indicate, say, number-as-string, allowing decimals would cause silent overflows or precision truncating.

It will be supported, as soon as it can be.

TkTech avatar Aug 20 '20 03:08 TkTech