
I noticed that doubles like 8.0 are "int" when the document is fetched in flutter dart

is this expected behaviour?

yes, because JSON will always be 8 and not 8.0. you'll have to parse and handle it accordingly

makes sense 👍

casting it as num type and then using toDouble()  worked :)

[SOLVED] Appwrite double attribute value is an int
Recommended threads
- AI feature by functions?I'm creating a website where, in short, users can index certain genealogical content. In connection with the development of AI, I was thinking about introducing... 
- 500 Internal Error when Project is opene...After migrating from 1.6.1 to 1.7.4 I noticed this strange behaviour: When I open a project in a separate tab I get a 500 internal error. However, then I simpl... 
- CORS error only on tables db api After u...I've recently updated my self hosted appwrite instance to the 1.8.0 and updated my frontend with the tables db apis but strangely, even if I'm able to log in, g... 
