NX How to round to a number with decimal places?

2024-04-18T07:55:04Z
NX for Design

Summary


Details

Sometimes it is necessary to reduce a number with e.g. 10 decimal places to 2 decimal places. In the expression Editor there is the ROUND(X) function available. But it returns a rounded integer only without any decimal places.

Once it should be rounded up properly and once it should be rounded down properly.

Solution

If you are looking to do rounding to the nearest numbers of decimal places, then in Expression editor use the round function of a multiply and then divide.

e.g.: round(XY*100)/100


Notes

KB Article ID# PL8787078

Contents

SummaryDetails

Associated Components

NX Legacy Documentation