Hi,
When I add “digits=‘field_unit’” to a Numeric field in a Function field, the system ask to save the record when I read it and try to read the next one. Is there something special with the formatting of a field in a Function field ?
KR, Laurent
It is probably because the existing value is not properly rounded.
Exact it’s the cause. How can I convert Decimal(1.11111111…) to Decimal(1.11) without using a string format like {0:0.2f}".format() ?
>>> round(Decimal('1.1111111111'), 2) Decimal('1.11')
shame on me Tks Cedric