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
- Attach Dart debugger for locally deploye...
Hello there, I was wondering if it is possible to attach debugger to dart function, that I run locally. It would make development much easier :-). Thank you.
- total parameter not working correctly in...
Hello Appwrite team, I'm experiencing issues with the total parameter in the listRows() method (TablesDB) across multiple SDKs. **Issue 1**: Node.js SDK (node...
- Relationship lists aren't showing
In flutter, when I perform a listRows function for my table which contains various relationships in addition to normal data, I am not getting the relationships ...