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

Decimal values are converted to float causing typical floating point errors #10

Open
tuffnatty opened this issue Aug 16, 2016 · 0 comments

Comments

@tuffnatty
Copy link

e.g. Decimal.decimal("14876279.30") with standard renderer is represented as 14876279.3, and with drf-ujson-renderer as 14876279.3000000007. You need to add 'COERCE_DECIMAL_TO_STRING': False in your settings to reproduce it.

@tclancy tclancy mentioned this issue Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant