-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
00 as decimal places when serialize Double #1769
Labels
Comments
|
It looks like there are at least two hacky workarounds:
|
@Marcono1234 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi team,
For a specific reason, I want 2 decimal places for my double when serializing into JSON.
Something like:
9900 --> 9900.00
9900.0 --> 9900.00
9900.1234 --> 9900.12
My best result so far:
9900 --> 9900.0
9900.0 --> 9900.0
9900.1234 --> 9900.12
My DoubleAdapter.java, please advice. Thanks a lot!
The text was updated successfully, but these errors were encountered: