I have an order object with a property “rating” which is of type Double. I’ve tried setting it in various ways but no matter what I do it gets saved to backendless as an integer. In my Backendless Data Management screen the field is displayed with the “DOUBLE” identifier but its rounding all the values I send to the nearest integer. Is there a trick to making this work? I initialize my value as 0.0 then later update them.
This isn’t about object retrieval, its how Backendless is storing the value. I can’t even type a decimal value directly into the table. It says Double, and will let me enter a value like “2.5” but when I hit enter it gets stored as “2”.
Strangely, I have other fields in the same table defined as Doubles that have no problem accepting decimal values. See attached screenshot for example, the discount applied field will not accept decimla values if I manually enter one and hit enter, while the latitude field accepts doubles fine.
Hi Chris,
I connected to your app and reproduced the problem, so I’ve created the internal ticket (BKNDLSS-13593) to fix it.
We’ll let you know when it will be done.
Regards, Ilya
Fields created though SDK c#, the double fields always gets rounded to nearest value. What I had to do is, delete those fields and recreate through backendless console
For your installation, you can just go to Data->Table Schema and Permissions and switch datatype to INT press save button, then change to DOUBLE and press save. it should fix the problem