×
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

Formula to show both inches and mm for a length

Formula to show both inches and mm for a length

Formula to show both inches and mm for a length

(OP)
Hi everyone I'm hoping you can help me out here.

I've attach a picture that I hope helps to see what I am trying to do.

My global units is set to inches, because I am primarily working to inches. However, I am using components that require a metric designation in their part number. What I am trying to do is have a formula that sees the length of the pad, converts that number to the metric equivalent, then shows that automatically in both the Product Description and Part Number. I thought the round(L,"mm",1) would do that for me, but it didn't do what I thought.

Any help will be appreciated.

Thanks

RE: Formula to show both inches and mm for a length

If you are just looking for the numeric value you could utilize the following: ToString( Length.1 *25.4/1in ) If you want to include the units you could concatenate them with ToString( Length.1 *25.4/1in ) + "mm"

--Doug

RE: Formula to show both inches and mm for a length

(OP)
Thanks, appreciate the help. Your suggestion was helpful.

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