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

Siemens Phenom Siemens Phenom
Siemens Phenom

@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.

Regards,
Ganesh

Re: ROUND VALUES OF THE EXPRESSIONS

Legend
Legend

You can use the Round()  function.

example:

A = 10.2

A = Round (B)

 

B will have a value of 10.0