Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7k
Closed
Description
I guess,coerce_to_string=True in DecimalField should safely remove trailing zeros andcoerce_to_string=False should leave value unchanged. If it's true - why my values are with trailing zeros?
In old version of DRF values were without trailing zeros as I remember
| vaue | 24.471635150166826 |value = serializers.DecimalField(decimal_places=30, max_digits=35, default=0, coerce_to_string=True)>> 24.471635150166826000000000000000Metadata
Metadata
Assignees
Labels
No labels