Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for java.math.BigDecimal #34

Closed
GoogleCodeExporter opened this issue May 4, 2015 · 5 comments
Closed

Add support for java.math.BigDecimal #34

GoogleCodeExporter opened this issue May 4, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

JsonPrimitive provides support to get values as double through
getAsDouble(). However, to support higher precision (for example, while
dealing with money objects), it should also provide support for BigDecimal. 

Original issue reported on code.google.com by inder123 on 18 Aug 2008 at 8:47

@GoogleCodeExporter
Copy link
Author

We should add support "BigInteger" as well.

Original comment by joel.leitch@gmail.com on 19 Aug 2008 at 2:32

@GoogleCodeExporter
Copy link
Author

Fixed in r176

Original comment by inder123 on 21 Aug 2008 at 11:56

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Gson does not properly handle small values of BigDecimal and BigInteger during
deserialization.

Original comment by joel.leitch@gmail.com on 22 Aug 2008 at 2:44

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

NOTE: r180 exposes this bug.

Original comment by joel.leitch@gmail.com on 22 Aug 2008 at 2:45

@GoogleCodeExporter
Copy link
Author

Fixed after r181.

Original comment by joel.leitch@gmail.com on 22 Aug 2008 at 2:56

  • Changed state: Fixed

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

No branches or pull requests

1 participant