Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Does anyone know if it's possible to round values created with relations?
What I am doing is setting my speeds and feeds with relations. It works fine but it looks strange to see these numbers in the RPM column.
what i was wondering is there a way to round these values to eliminate everything after the decimal.
I have looked but I don't see anything on how to either round the value or strip everything after the decimal in the relations.
Thanks
Solved! Go to Solution.
Hi, i think there are a couple of ways you can achieve your goal. First, set the parameter type to integer, or, floor the value of the parameter in your relation. I am no expert when it comes to writing relations, but, either of these seemed to do the trick.
spindle_speed=floor(34.23x56.2+0.5,0)
or with integer value
sp_1=floor(34.23x56.2+0.5,0)
hope this helps
John
Hi, i think there are a couple of ways you can achieve your goal. First, set the parameter type to integer, or, floor the value of the parameter in your relation. I am no expert when it comes to writing relations, but, either of these seemed to do the trick.
spindle_speed=floor(34.23x56.2+0.5,0)
or with integer value
sp_1=floor(34.23x56.2+0.5,0)
hope this helps
John
Thanks John,
That did the trick.