Extensions implementation: Floats should be passed rounded to the precision given in the .inx file
Summary:
Continuation of extensions#312 (closed)
Steps to reproduce:
- open Inkscape
- open GCodeTools: Orientation
- click the up arrow of the lower float input field
- click the down arrow of the same input field
- the value is displayed as 0.00000 (precision of 5 decimals)
What happened?
A value of -9.71445146547012e-17
is passed. You can check that by expanding the created layer and inspecting the text element.
What should have happened?
A value of 0 (or 0.00000) is passed. The extension author already indicated that they are interested in 5 decimals with the precision field. No reason to bother extension authors with gtk-internal floating point errors.
Sample attachments:
Version Info:
- Inkscape Version: Inkscape 1.2-dev (bf4f53e38c, 2021-05-21)
- Operating System: Ubuntu
- Operating System version: 20.04