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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

parameter round off

Vidhyadhara
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
SylvainA.
4-Participant
(To:Vidhyadhara)

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.

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.

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

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

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

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

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!

 

 

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

 

it's math!

 

Top Tags