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.
Thanks.





RE: round number in formula
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
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
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
about the rounding to specific number of digits question; check out this archived thread:
thread560-124350
it's a workaround.