This workaround doesn't fix here. What does happen if you double-click the function and just validate by clicking "OK" in the Tasks tab ? Here it is rounded (to 0.530 mm, so keeping 3 decimals).meme2704 wrote: ↑Mon Feb 18, 2019 4:09 pm I have just taken the procedure to zero:
I open your file, I measure your hole, = 0.53mm, including in techdraw
I modify your hole to 0.525mm I measure it (by the two techniques) = 0.525mm, I save, I reopen, I measure = 0.53mm, Damned
I modify "Preferences" to 4 decimals places, I close Fc, I restart Fc, I redo all the tralala, and .... (roll of drums) .... the hole is to remain at 0.5250mm ...... youpie
it should be written on Fc's pediment:
"DO NOT FORGET TO CLOSE Fc FOR CHANGES OF PREFERENCE TO BE TAKEN INTO ACCOUNT"
unwanted rounding for subtractive cylinder
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
Re: unwanted rounding for subtractive cylinder
Re: unwanted rounding for subtractive cylinder
I do not understand what you call a workaround
if you do not modify "Preferance", close, reopen, it will remain to 2 decimal rounded
I put 4 decimals, to check that it would put well 0.5250 and would save it, but indeed, 3 are enough if you do not fall below the micrometers
if you do not modify "Preferance", close, reopen, it will remain to 2 decimal rounded
I put 4 decimals, to check that it would put well 0.5250 and would save it, but indeed, 3 are enough if you do not fall below the micrometers
Re: unwanted rounding for subtractive cylinder
I cannot confirm meme's fix either. Using the dialog the values are always rounded to 2 decimals. It is even worse: this error exists for subtractive and additive primitives, tested for cylinder and cube.
Any other places before we create a bug report?
OS: Ubuntu 16.04.5 LTS
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: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Any other places before we create a bug report?
OS: Ubuntu 16.04.5 LTS
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: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: unwanted rounding for subtractive cylinder
The issue existed already in 0.17.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: unwanted rounding for subtractive cylinder
Bof!, if you want, I do not use any magic formula to get this, you can check with this file, if your machine is set to 4decimales of courseI cannot confirm meme's fix either
- Attachments
-
- rayon5250.PNG (16.26 KiB) Viewed 670 times
-
- Cylinder-rounding-issue5250.FCStd
- (20.53 KiB) Downloaded 20 times
Re: unwanted rounding for subtractive cylinder
I confirm that as soon as you edit the function as previously mentionned (double-click function & validate values - without changing - in Tasks tab), the value is rounded again.
EDIT :
Re: unwanted rounding for subtractive cylinder
I did some tests also and it seems like problem exists with all values of all additive & substrative primitives. For example I tested with wedge, all values are concerned.
Oppositely, I found no problem with other values that are editable in the Tasks tab (eg. pad or pocket length).
I found another strange behavior : for example, a value of 2,525 is rounded to 2,520 (floor) while 8,525 is rounded to 8,530 (ceiling).
Re: unwanted rounding for subtractive cylinder
Démerdez-vous j'ai fais ce que j'ai pû
Re: unwanted rounding for subtractive cylinder
Using the file in the OP, FreeCAD works for me as expected using these Edit > Preferences > General > Units settings:
Edit: After quitting FreeCAD, opening it again, and creating a new Sketch from Part Design, constraints in the 3D window are whole numbers - no decimal point.
Units system: Standard
Number of Decimals: 6
OS: Ubuntu 18.04.2 LTS
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.18.15860 (Git)
Build type: Release
Branch: master
Hash: 3b708c7f84b0425076b520e1d95627b20fd75fe0
Python version: 2.7.15rc1
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
blue and strike-through = edit
Edit: After quitting FreeCAD, opening it again, and creating a new Sketch from Part Design, constraints in the 3D window are whole numbers - no decimal point.
Units system: Standard
Number of Decimals: 6
OS: Ubuntu 18.04.2 LTS
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.18.15860 (Git)
Build type: Release
Branch: master
Hash: 3b708c7f84b0425076b520e1d95627b20fd75fe0
Python version: 2.7.15rc1
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
blue and strike-through = edit
Last edited by bejant on Mon Feb 18, 2019 7:07 pm, edited 1 time in total.
Re: unwanted rounding for subtractive cylinder
Problem also exists here with 6 decimals.
---
OS: Ubuntu 18.04.2 LTS
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: 2.7.15rc1
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_FR)