rounding off to 10mm
rounding off to 10mm
(OP)
Is there a way to round off a number to the nearest 10mm?
As in 2786mm would become 2790mm?
As in 2786mm would become 2790mm?
NX 7.5
Teamcenter 8
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join EngTips Forums!
*EngTips's functionality depends on members receiving email. By joining you are opting in to receive email.
Posting GuidelinesPromoting, selling, recruiting, coursework and thesis posting is forbidden.
Link To This Forum! 

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.
Here's Why Members Love EngTips Forums:
Register now while it's still free!
Already a member? Close this window and log in.
RE: rounding off to 10mm
for example try typing this into google:
round nx site:engtips.com
you'll find this thread: thread561168324: Round number to certain number of digits
and this post from Mr. Baker:
X = the original number you wish to round
XR = the result after rounding
places = represents the number of places that you wish to round to, using the following scheme:
1 decimal place = 10
2 decimal places = 100
3 decimal places = 1000
etc.
Also make sure that the places expression has a dimensionality of "Constant".
This then gives you a final expression of:
XR = round(X*places)/places
Of course you could replace the variable "places" in the above expression with the 10's, 100's, 1000's, etc. as needed.
RE: rounding off to 10mm
RE: rounding off to 10mm
The numbers I'm trying to round off are dimensions in a drafting. Via the dimension style you can choose the precision behind the comma, but you can't get any further then 0 (2732,4==>2732).
NX 7.5
Teamcenter 8
RE: rounding off to 10mm
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
UG/NX Museum: http://www.plmworld.org/p/cm/ld/fid=209
To an Engineer, the glass is twice as big as it needs to be.
RE: rounding off to 10mm
On another note, NX drafting seems to have a peculiar rounding off rule:
1.55 becomes 1.6
1.65 also becomes 1.6
I've found an explanation on this from 2007 here:
http://www.engtips.com/viewthread.cfm?qid=197969
But don't see a reference to any standard there.
Also, is it the same for ISO? I've never heard about this before.
NX 7.5
Teamcenter 8
RE: rounding off to 10mm
www.nxjournaling.com
RE: rounding off to 10mm
If you read the EngTips thread that you referenced you will see an explanation that the approach used by NX was designed to eliminate the statistical 'error' one gets if they DON'T follow the odd/even rule when the digit to be removed is exactly 5.
To show you what I mean, add a column of ten unrounded numbers consisting of alternating values of 1.55 and 1.65 (each would appear five times). Now using both the method you've been using and the NX method, add columns of the same numbers rounded to the 0.1/th place. Now compare the results of all three columns (I've already done it in the attached Excel file).
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
UG/NX Museum: http://www.plmworld.org/p/cm/ld/fid=209
To an Engineer, the glass is twice as big as it needs to be.
RE: rounding off to 10mm
If you have, for example a 21,5mm axis going into a 22,5 hole: rounded off that would be 22 and 22 which would hardly fit
However, a 22,5axis in a 23,5 hole would round off to 22 and 24mm.
Then again, you tolerance will probably be a lot smaller if it actually matters.
NX 7.5
Teamcenter 8
RE: rounding off to 10mm
If you know that the number will always need to be rounded DOWN then use the word "floor" in place of the word "round" in the below equation:
XR = round(X*places)/places
RE: rounding off to 10mm
It will not be "rounded" up (or down), it will be moved up (or down). For example: ceiling(2.062) = 3.0
RE: rounding off to 10mm
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
RE: rounding off to 10mm
RE: rounding off to 10mm
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
UG/NX Museum: http://www.plmworld.org/p/cm/ld/fid=209
To an Engineer, the glass is twice as big as it needs to be.
RE: rounding off to 10mm
That's the problem, it happens very randomly. Then again, changing it once usually fixes the problem, so it's not that big of a deal.
NX 7.5
Teamcenter 8
RE: rounding off to 10mm
RE: rounding off to 10mm
RE: rounding off to 10mm