I'm getting unexpected results using "round( )" in the parameters table. File attached (Inventor 2014). Details below.
width = 35.125
end_result = round(width)
Nominal value for "end_result" is 35.039370. Why is this not rounding to exactly 35?
Solved! Go to Solution.
It's probably a units problem. For whatever reason, the round( ) function expects a unitless value, and returns a unitless value. So, if width and end_result are in mm, you will have to write your function like this:
round( width / 1mm ) * 1mm
The ceil( ) and floor( ) functions suffer the same ailment.
Please click "Accept as Solution" if this response answers your question.
See this link for further information:
If that helps, you might give cwhetten a couple of kudos for the well written explanation.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
Is there a way to "round up" or "round down"? This would give a conditional number.
If I round()*1, I may get a decimal number (less than 1). My preference would be to rounddown to recieve a lwer whole number.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register