google / ground-android

Ground mobile data collection app for Android
http://groundplatform.org
Apache License 2.0
245 stars 115 forks source link

[Number question tasks] Add validation & restrictions for allowed number values #2366

Open jcqli opened 6 months ago

jcqli commented 6 months ago

Prevent user from entering numbers larger than precision allowed by firebase

@gino-m @rfontanarosa Do you know what the max is?

anandwana001 commented 1 month ago

@jcqli Something I found about the limit

Integers: Firestore supports int (32-bit signed integers) and long (64-bit signed integers). There’s no enforced precision limit, but the maximum size for integers is constrained by the type:
32-bit integers: Can store values from -2,147,483,648 to 2,147,483,647.
64-bit integers: Can store values from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.