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
- [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...
- android platform invaild origina
It happened today suddenly. Our app says invalid origin. And appwrite cloud says every time we tried to add the app to it: "param platformId" is not optional.
- Team invite - 500 error - no email
When executing ```dart await _repository.teams.createMembership( teamId: event.listId, roles: ['member'], email: event.email, url: 'xxxx', ); ``` I se...