bruce81
Mechanical
- Aug 6, 2008
- 2
I am trying to round a parameter up to either 5 or 10. I am wondering if there is a way to write this into the relations so when this parameter is calculated in the relations it rounds automatically.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
TEMP1 = NUM/5
TEMP2 = floor(TEMP1)
TEMP3 = TEMP1-TEMP2
IF TEMP3 < 0.5
ROUNDED_NUM = 5*TEMP2
ELSE
ROUNDED_NUM = 5*TEMP2+5
ENDIF