×
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 number in formula

round number in formula

round number in formula

(OP)
Is there any option to round number in formula when is calculating some dimension, for example dimension A/dimension B (result is 4,71) and I would like to round that quotient on 5.

Thanks.

RE: round number in formula

yes

round(dimension A/dimension B)

there are also useful functions such as ceil() which gives you the closest larger integer value to the result, and floor(), which gives the closest smaller integer value to the result.

RE: round number in formula

(OP)
Thenks, it works.
Where did you found that functions (ceil, floor etc.) I didn't find in catia help.
Is there any function which will round some dimension on 2, 3 or more decimals, for example 5,7712 to round on 2 decimals (5,77) or 3 decimals (5,771)
Thanks

RE: round number in formula

Glad I could actually help someone for once; I feel like I'm always the one asking for help around here :)

When you launch the formula editor, you should be able to see all the "math" related functions under the "Dictionary" (scroll to "Math").

Not sure about your 2nd question, though I can easily see how that would be useful.

RE: round number in formula

hmm,
about the rounding to specific number of digits question; check out this archived thread:

thread560-124350

it's a workaround.

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