#1593·graphene

`Decimal` `Scalar` 中的 `parse_value` 函数进行浮点数到小数转换时不准确

作者: mak626创建于 2025年2月10日更新于 2025年2月10日
标签🐛 bug

当前行为

parse_value 函数目前使用 _Decimal(value) 来转换输入。当传入浮点数时,此转换可能会导致精度损失,因为浮点数表示方式本身就存在不精确性。

内容来源: graphql-python/graphene