graphene icon indicating copy to clipboard operation
graphene copied to clipboard

[FIX] Decimal scalar inaccurate conversion of float to decimal

Open mak626 opened this issue 9 months ago • 0 comments

Fixes https://github.com/graphql-python/graphene/issues/1593

Example:- Decimal(0.01) created a value Decimal("0.01000000000000000020816681711721685132943093776702880859375")

Additional: The Decimal field now accepts string, int & float. Previously, it was just string & int

mak626 avatar Feb 10 '25 15:02 mak626