turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Navigation
- NX Design
- Forums
- Blogs
- Knowledge Bases
- Groups

- Siemens PLM Community
- NX Design
- NX Design Forum
- Expressions: Round to the decimal places

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

12-18-2015 10:19 AM

In Expressions, how could I “Round a number to the decimal places I want”?

Like in Excel; A1 contains 823.7825

Type = ROUND(A1,3) which equals 823.783

Michael Fernando

Die Designer

NX 11.0.2.7 + PDW

Die Designer

NX 11.0.2.7 + PDW

- Tags:
- expressions

Labels:

6 REPLIES

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

12-18-2015 11:27 AM

First off, in NX we would never round **823.7825** to **823.783**. Rather it would be rounded to **823.782.**

In the Expression dialog, you'll find the various functions by selecting the * f(x)* icon. The function you're looking for is named

Attached is a part file with a series of Expressions showing how to do this. There is an Expression for the original number, '**Number_in**', and the Decimal places, '**Number_of_decimal_places**'. The rounded number is returned by the Expression '**Number_out**'.

Anyway, I hope this helps.

John R. Baker, P.E. (ret)

EX-Product 'Evangelist'

Irvine, CA

EX-Product 'Evangelist'

Irvine, CA

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

12-18-2015 12:32 PM

I already had tried Round() but the basic application was limited.

Thanks John, I could make it work the way described. Wish the method was easier.

Michael Fernando

Die Designer

NX 11.0.2.7 + PDW

Die Designer

NX 11.0.2.7 + PDW

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

12-18-2015 12:35 PM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

12-18-2015 01:54 PM

It’s to automate the calculation of model parameters in repetitive work. Tooling is in inch and their products are in metric which creates this messy situation.

Michael Fernando

Die Designer

NX 11.0.2.7 + PDW

Die Designer

NX 11.0.2.7 + PDW

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

12-21-2015 10:05 AM

If you are working with the actual values, I'm not sure why you would want/need to round the values?

If you are working in an inch file, you can enter a metric value such as "20 mm" and NX will keep the value in metric, but convert the values for its own use.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

12-21-2015 11:37 AM

The product is consist with three parts with thickness in mm values; 0.4mm+0.15mm+0.9mm= 1.45mm (0.0570866….)

It’s a good practice to establish rounded base numbers for clarity, to avoid confusion at a latter stages especially when adding clearances and stackup values in the assembly.

Michael Fernando

Die Designer

NX 11.0.2.7 + PDW

Die Designer

NX 11.0.2.7 + PDW

Follow Siemens PLM Software

© 2018 Siemens Product Lifecycle Management Software Inc