unwanted rounding for subtractive cylinder

Post here for help on using FreeCAD's graphical user interface (GUI).
kisolre
Posts: 268
Joined: Wed Nov 21, 2018 1:13 pm

Re: unwanted rounding for subtractive cylinder

Postby kisolre » Mon Feb 18, 2019 6:57 pm

Editing the radius from the Tasks panel and then recompute works ok. Then just entering and confirming the Cylinder edit mode rounds the selected values to 2 decimals and assigns those values:

Code: Select all

FreeCAD.getDocument("Cylinder_rounding_issue5250").getObject("Cylinder001").Radius = '1.522 mm'
>>> App.activeDocument().recompute()
>>> Gui.activeDocument().setEdit('Cylinder001',0)
>>> App.ActiveDocument.Cylinder001.Radius=1.52
>>> App.ActiveDocument.Cylinder001.Height=4.00
>>> App.ActiveDocument.Cylinder001.Angle=360.00
>>> 
>>> App.ActiveDocument.recompute()
OS: Windows 8.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15860 (Git)
Build type: Release
Branch: master
Hash: 3b708c7f84b0425076b520e1d95627b20fd75fe0
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Bulgarian/Bulgaria (bg_BG)
User avatar
bejant
Posts: 5423
Joined: Thu Jul 11, 2013 3:06 pm

Re: unwanted rounding for subtractive cylinder

Postby bejant » Mon Feb 18, 2019 7:03 pm

openBrain wrote:
Mon Feb 18, 2019 6:23 pm
Problem also exists here with 6 decimals.
I quit FreeCAD, started it again, and created a new Sketch from Part Design. Constraints in the 3D view are now whole numbers - I don't even get a decimal point.

I'll edit my previous post.
wmayer
Site Admin
Posts: 13814
Joined: Thu Feb 19, 2009 10:32 am

Re: unwanted rounding for subtractive cylinder

Postby wmayer » Tue Feb 19, 2019 8:51 am

User avatar
meme2704
Posts: 2560
Joined: Sat Apr 01, 2017 2:47 pm
Location: Vosges

Re: unwanted rounding for subtractive cylinder

Postby meme2704 » Tue Feb 19, 2019 9:03 am

I think the Windows version works as I describe it by supporting the decimals, without rounding, and that the Ubuntu version that is not the same release, bug
kisolre
Posts: 268
Joined: Wed Nov 21, 2018 1:13 pm

Re: unwanted rounding for subtractive cylinder

Postby kisolre » Tue Feb 19, 2019 9:08 am

meme2704 wrote:
Tue Feb 19, 2019 9:03 am
I think the Windows version works as I describe it by supporting the decimals, without rounding, and that the Ubuntu version that is not the same release, bug
Windows here, 3 posts up - decimals are 5, rounds to 2
wmayer wrote:
Tue Feb 19, 2019 8:51 am
git commit 638845a6f
When should we expect a build?
User avatar
meme2704
Posts: 2560
Joined: Sat Apr 01, 2017 2:47 pm
Location: Vosges

Re: unwanted rounding for subtractive cylinder

Postby meme2704 » Tue Feb 19, 2019 9:23 am

Pfffff :!: :mrgreen:
chrisb
Posts: 14104
Joined: Tue Mar 17, 2015 9:14 am

Re: unwanted rounding for subtractive cylinder

Postby chrisb » Tue Feb 19, 2019 9:38 am

wmayer wrote:
Tue Feb 19, 2019 8:51 am
git commit 638845a6f
Are the fields now Expressions-aware?
User avatar
uwestoehr
Posts: 378
Joined: Sun Jan 27, 2019 3:21 am

Re: unwanted rounding for subtractive cylinder

Postby uwestoehr » Tue Feb 19, 2019 10:22 am

wmayer wrote:
Tue Feb 19, 2019 8:51 am
git commit 638845a6f
Many thanks! I am very impressed once more how fix things are fixed.