A producer sells a beverage that is 350mL volume. He enters 350 in "value" and select mL as unit, but the value gets transformed to 349.999999.
It remains what is entered (350 here)
It doesn't
https://www.useloom.com/share/1775169424c844438e880ec5c32a28c2
Reported by a producer on French instance.
S3, there is a workaround using the dispay as field.
A classic Javascript problem. Javascript math is broken, because in javascript 0.1 + 0.2 != 0.3
I put a simple quickfix to the problem. I think it's ok for what it is. Other more robust solutions to the problem are possible (for example, using third party lib for js math).
I didn't know about JS math but it's something to keep in mind of more issues like this come up
I've noticed the same issue on the UK OFN platform. We are selling milk in 1 pint bottles which we are recording as 568ml. However, this is displayed as 567.99999 mL.