×
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

How to round down a number in the relations

How to round down a number in the relations

How to round down a number in the relations

(OP)
Hi everyone!

I would like to create parts based on relations and I would like to know if there is function to round down a number?

In example :

L1 = 10
L2 = 1.5
a = L1/L2 (= 6.6666)

Then I would like to declare another attribute equal to "a" rounded down.

Final_attribute = a (= 6)

Is there a solution?

Thanks for your help!

RE: How to round down a number in the relations

I believe you are looking for floor()

a = floor(L1/L2)

It's been 3 years + since I've been on Pro/E but so my memory my have faded.

See the following for more:

http://www.eng-tips.com/faqs.cfm?fid=970

--
Fighter Pilot
Manufacturing Engineer

RE: How to round down a number in the relations

(OP)
Many thanks for the answer and your swiftness!

It's exactly what I was looking for! Your memory seems to be intact!smile

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