-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Loss of precision on Float fields #2903
Copy link
Copy link
Closed
prisma/prisma-engines
#942Labels
bug/2-confirmedBug has been reproduced and confirmed.Bug has been reproduced and confirmed.kind/bugA reported bug.A reported bug.tech/enginesIssue for tech Engines.Issue for tech Engines.topic: floating point typesTopic related to floating point types and precision lossTopic related to floating point types and precision loss
Milestone
Metadata
Metadata
Assignees
Labels
bug/2-confirmedBug has been reproduced and confirmed.Bug has been reproduced and confirmed.kind/bugA reported bug.A reported bug.tech/enginesIssue for tech Engines.Issue for tech Engines.topic: floating point typesTopic related to floating point types and precision lossTopic related to floating point types and precision loss
Bug description
I have a
price Float @default(0)field and while the value stored in the database row (postgres) is0.69the value returned by the prisma client is0.6900000000000001(this is aconsole.logon the output of.findMany)Environment & setup