Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

round expression value

Status
Not open for further replies.

moog2

Mechanical
Jan 16, 2007
441
(NX5)I'm using the expression for sheet metal thickness, in a text note on the drawing, but the expression comes out as 3.00 but i only want it to read 3 how can i round it down ?
 
Replies continue below

Recommended for you

Simple. By default the expression has two decimal places.

<X0.2@t> where t is the expression 3 is the value and 3.00 is how the note appears.

<X0.0@t> where t is the expression 3 is the value and 3 is how the note appears.

Because .2 was changed to .0 inside the note substitution text block. In that little coded statement the number after the decimal point dictates the number of decimal places used.

Best regards

Hudson

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor