Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

jsonxx:Number floating point number or integer? #35

Open
gcamp opened this issue May 12, 2014 · 1 comment
Open

jsonxx:Number floating point number or integer? #35

gcamp opened this issue May 12, 2014 · 1 comment

Comments

@gcamp
Copy link
Contributor

gcamp commented May 12, 2014

Right now the jsonxx::Number encompass both the floating point and integer values. This causes problems when I want to put that number as string. Specifically, I would want to avoid the trailing zeros.

I'm open on doing a pull request, but this seems like a API decision that has been made a while ago. Any reason for that?

@hjiang
Copy link
Owner

hjiang commented Feb 21, 2021

Sorry for responding after 7 years! This is due to JSON itself only has a number type to include both integers and floating point numbers.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants