Cancel
Showing results for 
Search instead for 
Did you mean: 

ROUND VALUES OF THE EXPRESSIONS

Experimenter
Experimenter
HI.
IN THE VALUES OF EXPRESSIONS, I WOULD LIKE TO REMOVE THE NUMBERS AFTER THE COMMA.
HOW I DO?
 
THANK YOU
THAIS 
3 REPLIES

Re: ROUND VALUES OF THE EXPRESSIONS

Honored Contributor
Honored Contributor

As long as the value is greater than zero, the floor function should work for you. For values less than zero, use the ceiling function.

 

if(p4_z > 0)(floor(p4_z))else(ceiling(p4_z))

Re: ROUND VALUES OF THE EXPRESSIONS

@Thais, you can have control over the precision of the dimension measurements that will be displayed in information window or GUI of NX. (Ctrl+2 > Options > Information Window).

If they are generated by NX, I thinks there is no way to modify/control it.

Ganesh Kadole, QA Analyst (PLM), SQS
Testing: NX 11 | NX 12 | TCIN
TC 11.2 | TC Vis 11.3 | AWC 3.2

Re: ROUND VALUES OF THE EXPRESSIONS

Valued Contributor
Valued Contributor

You can use the Round()  function.

example:

A = 10.2

A = Round (B)

 

B will have a value of 10.0