How do you folks deal with floating point rounding...
# orm-help
s
How do you folks deal with floating point rounding issues? I’ve tried to attach my problem here. Basically I am adding 0.001 every time, and there are floating point rounding errors, which is obviously a problem.
Copy code
await prisma.cryptoaddress.update({
                where: {
                    address: address,
                },
                data: {
                    balance: {
                        increment: parseFloat(amount),
                    },
                },
              });
1
v
Hi, Simon! Maybe Dinero.js or big.js could be helpful 🤔
h
s
Thanks @Harshit! Super easy to work with and implement 🙂
🙌 1