cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

1-Newbie

parameter round off

In part relations(WF2) I need to round off parameter values to certain decimal places, the ceil function is not helping either. CE1 = ceil(10.136, 2) returns CE1=10.14 CE2 = ceil(10.134, 2) also returns CE2=10.14 But how to round off the value i.e 10.134 to 10.13
8 REPLIES 8
4-Participant
I don't know how to do that in a relation, but if you just want to display the rounded value in a drawing, you can write it like this:
``612e9b825d``
``612e9b825d``
represents the number of decimals to show.
1-Newbie
(To:SylvainA.)
Sylvain, this &amp;parameter_name[.2] works for display purpose in drawing notes.. however i want the round off parameter value for further calculations inside the part relations itself.
1-Newbie
you can round off any dimension individually by modifying the propreties and change the number of decimal in the dimension properties in your model.
1-Newbie
(To:jaypogi)
Hi, Ceil will always round it up. Floor will always round it down. Its strange that ROUND function is missing from Proe. At least I counldnt find it. I have a solution for this. Its a relation that will work like round function. I have a blog on this solution. have a look if it works for you. http://tipsfromjoe.blogspot.com/2009/05/proe-function-relation-to-round-decimal.html HTH, Joe. ---------------------------------------------- you can find some tips at... http://tipsfromjoe.blogspot.com ----------------------------------------------
1-Newbie
(To:JoeVarghese)
Hi Joe, Its simple &amp; really great.. appreciate it This was excatly what i was looking for.. Thank you very much..
1-Newbie
Welcome Joe. ---------------------------------------------- you can find some tips at... http://tipsfromjoe.blogspot.com ----------------------------------------------
7-Bedrock
(To:JoeVarghese)

Round il like

floor (N+5*10^(D+1),D)

or

ceil (N+5*10^(D+1),D)

with

N--> number to rounded

D--> number of decimal

it's math!

7-Bedrock

you can use floor (103.136+0.005,2) or ceil (103.136-0.005,2).

it's math!

Announcements
Attention: Creo 7.0 Customers