I am encountering an issue while attempting to save a 20-digit number from my Vue app into my Firestore database. The problem arises when it appears that the last 3 digits are being rounded off, and any numbers starting with a zero are having the zero removed from them.
This issue seems to be prevalent with numbers exceeding 16 digits in length. For instance, when trying to save 12345678910111213141
, it gets stored as: 12345678910111214000
upon checking the database.
A similar dilemma was discussed in a previous question, where the correct number was retrieved in the program despite showing the rounded value in Firestore. However, in my case, even the app displays the rounded figure.
How can this be resolved?