graphene
graphene copied to clipboard
[FIX] Decimal scalar inaccurate conversion of float to decimal
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