#Is its possible to convert directly the Decimal to a Number in Prisma function
3 messages · Page 1 of 1 (latest)
Prisma ORM uses Decimal.js for the Decimal support
https://www.prisma.io/docs/orm/prisma-client/special-fields-and-types#working-with-decimal
Once you obtain the result from your query, you should be able to use toNumber method to convert it to a number
https://mikemcl.github.io/decimal.js/#toNumber
Yeah thats why I did actually, I was just wondering if they were no simpler way to do it, but thanks !