Back

[SOLVED] integers trouble (rounding???)

  • 0
  • Self Hosted
silent
26 Apr, 2023, 00:54

I'm attempting to create a document that contains a record of discord IDs (1100585043442806856 for example) for various discord functions. When trying to create the document, if I check the record, the integer has been rounded to 1100585043442806900. How can I avoid this without converting everything to strings?

TL;DR
The user is having trouble with rounding while creating a document with discord IDs. They mention that the integer gets rounded when checked. They are looking for a solution to avoid this rounding without converting everything to strings. Solution: The user can use a data type that supports larger numbers, such as bigint or decimal, to avoid rounding.
Drake
26 Apr, 2023, 00:58

I don't think you can.

silent
26 Apr, 2023, 01:01

Strings it is. 🙃

Drake
26 Apr, 2023, 01:46

[SOLVED] integers trouble (rounding???)

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more