×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

round expression value

round expression value

round expression value

(OP)
(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 ?

RE: round expression value

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

 

RE: round expression value

(OP)
Thanks buddy

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources