Gui::InputField precision limitation (2 digits)

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
mlampert
Veteran
Posts: 1772
Joined: Fri Sep 16, 2016 9:28 pm

Gui::InputField precision limitation (2 digits)

Post by mlampert »

I just filed issue 2866 (http://www.freecadweb.org/tracker/view.php?id=2866) about Gui::InputField rounding all entered values to 2 digits, internally. Not sure if I got the category right and everything, hence the post here.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Gui::InputField precision limitation (2 digits)

Post by Kunda1 »

mlampert wrote:I just filed issue 2866 (http://www.freecadweb.org/tracker/view.php?id=2866) about Gui::InputField rounding all entered values to 2 digits, internally. Not sure if I got the category right and everything, hence the post here.
FYI you can type the issue number and then press the 'bug' button in the forum
and it will automagically link to the tracker

issue #2866
Attachments
bug-button.png
bug-button.png (170.73 KiB) Viewed 1624 times
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
mlampert
Veteran
Posts: 1772
Joined: Fri Sep 16, 2016 9:28 pm

Re: Gui::InputField precision limitation (2 digits)

Post by mlampert »

Kunda1 wrote:FYI you can type the issue number and then press the 'bug' button in the forum
and it will automagically link to the tracker

issue #2866
Awesome, tried to figure that out and couldn't make it work. Thanks for the hint.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Gui::InputField precision limitation (2 digits)

Post by Kunda1 »

is there a relationship with issue #1822 ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
mlampert
Veteran
Posts: 1772
Joined: Fri Sep 16, 2016 9:28 pm

Re: Gui::InputField precision limitation (2 digits)

Post by mlampert »

not sure about that.

There is a comment that the # decimals can be set in the preferences. If that applies to the InputField and its internal representation then I guess it would be related. If that is the case then that setting needs some documentation, as it stands it looks like it's for display purposes only.
Post Reply