QField
QField copied to clipboard
Weird behavior increment range values
Describe the issue
Incrementing range values by steps shows randomly not rounded values
Reproduction steps
Steps to reproduce the behavior:
- Configure a field with decimal values incremented with decimal values
- Create or edit a range field with decimal numbers
- press '+' or '-' multiple times
Expected behavior
Show a number correctly incremented by a round value (ex : 0+0,1 not equals to 0,099998 !)
Observed behavior
The field is randomly incremented by a non rounded value, shows at first a wrong stored incremented value but seems to finally save the expected value
Screenshots and GIFs
In QGis :
In QField :
https://user-images.githubusercontent.com/30288828/233845948-bd241c3b-c52d-4847-8a7f-b8cf5a782ac3.mov
Test project :
Desktop
- OS : Win10 / MacOS 13
- QGIS Version : 3.26 / 3.28.4
- QFieldSync Version : not used
Mobile
- Device : Samsung Galaxy A13
- OS : Android 13
- QField version: 2.7.5 (5f7236)
Additional information
- Problem started happening recently, didn't happen in an older version of QField : No
- Problem can be reliably reproduced, doesn't happen randomly : reliably reproduced but some randomness in incrementing values
- Problem happens with all files and projects, not only some files or projects : on project configured with decimal values to increment