QField icon indicating copy to clipboard operation
QField copied to clipboard

Weird behavior increment range values

Open VxTedxV opened this issue 1 year ago • 1 comments

Describe the issue

Incrementing range values by steps shows randomly not rounded values

Reproduction steps

Steps to reproduce the behavior:

  1. Configure a field with decimal values incremented with decimal values
  2. Create or edit a range field with decimal numbers
  3. 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 : capture 2023-04-23 à 16 08 21

In QField :

https://user-images.githubusercontent.com/30288828/233845948-bd241c3b-c52d-4847-8a7f-b8cf5a782ac3.mov

Test project :

projet.zip

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

VxTedxV avatar Apr 23 '23 14:04 VxTedxV