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

parameter round off

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

RE: parameter round off

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.

RE: parameter round off

Sylvain, this &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.

parameter round off

you can round off any dimension individually by modifying the propreties and change the number of decimal in the dimension properties in your model.

i have a workaround.

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

Re: i have a workaround.

Hi Joe, Its simple & really great.. appreciate it This was excatly what i was looking for.. Thank you very much..

Re: i have a workaround.

Welcome Joe. ---------------------------------------------- you can find some tips at... http://tipsfromjoe.blogspot.com ----------------------------------------------
Highlighted

Re: parameter round off

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

 

it's math!

 

Re: i have a workaround.

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!