×
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

Decimal Places of Individual Parameters

Decimal Places of Individual Parameters

Decimal Places of Individual Parameters

(OP)
Hello all,

I use parameters from a distance analysis feature to populate tables in drawings for dynamic coordinates for pipes etc.

Is there a way to control the number of decimal places that these parameters get displayed with in the table without reducing the overall 'default_dec_places' in config.pro as I don't want to reduce the overal accuracy, just sometimes on certain parameters.

Thanks in advance.

Regards,

Jon Reynolds

RE: Decimal Places of Individual Parameters

(OP)
Well to answer my own question, I found this very useful tip:

In the table (note, whereever) cell where you are typing:
 
 &parameter_name

to get the parameter value to show, add [.nd] after, where 'nd' = number of decimal places to round to:

  &parameter_name[.2]

So if parameter_name = 123.4567,

then &parameter_name[.2] will display: 123.46

Nice.

Regards,

Jon Reynolds

RE: Decimal Places of Individual Parameters

Yes, that is it. You deserve a star for finding it.

"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli

RE: Decimal Places of Individual Parameters

Yeah, I gave him a star for answering his own question, and correctly at that.
-AAFuni

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