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
- Update user email using OTP
Hi, I am trying to implement email update using OTP, there is not password associated with the account. One solution I found online is creating appwrite functio...
- RowList: The value of total is coming as...
RowList: The value of total is coming as a String, so it throws an error because it’s not parsed into an int. Error: TypeError: \"37\": type 'String' is not a ...
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...