Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

round number in formula 1

Status
Not open for further replies.

acomana

Civil/Environmental
Jul 1, 2005
17
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.
 
Replies continue below

Recommended for you

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.
 
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
 
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.
 
hmm,
about the rounding to specific number of digits question; check out this archived thread:

thread560-124350

it's a workaround.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor