derkork/openscad-graph-editor

decimal numbers (float) turn to integer

Closed this issue · 0 comments

Nice concept by the way ;)

Here is what I've got:
When typing, for example, '10.2' into a field, the dot-separated number will be turned into an integer. In this case 10.2 will be transformed into the integer number '102'.
(I tried this also with a komma, but this leads to an error in OpenSCAD because it writes an vector with 4 elements. for example [0,0,10,2].)

  1. Add an Object (Cube, Sphere, etc) or make transformation on any object (translate)
  2. Unmark the field by click to any other place
  3. Check value in the changed field (it should turn to integer)
  4. Check model in OpenSCAD

Expected behavior
Minor change in the model because of a dot separated small number

Desktop

  • OS: Linux Mint 20.2
  • OpenSCAD-Graph-Editor Version: 0.1.13
  • OpenSCAD 2021.1 (AppImage)

Screenshots

gh01
gh02