Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JStephen 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
Joined
Jul 1, 2005
Messages
17
Location
YU
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.
 
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

Back
Top