Wrong result of the Round function in Inventor Parameter window

Autodesk Support

Apr 4, 2025


Products and versions covered


Issue:

Wrong result of the Round function in Inventor Parameter window.

The two numeric user parameters are created:

  • with a unit (mm): x = 128.5 mm
  • unitless (ul): y = round(x)/1mm 

The value of the y parameter is wrong (130 instead of 129).

 

wrong result of the round function in parameter window

Causes:

The round function requires a unitless parameter as an argument. The argument x is not unitless.

Solution:

Use a unitless argument for the round function. Instead of:

y = round(x)/1mm 

use:

y = round(x / 1 mm)

correct result of the round function in parameter window

Products:

Inventor Professional;


Was this information helpful?


Need help? Ask the Autodesk Assistant!

The Assistant can help you find answers or contact an agent.


What level of support do you have?

Different subscription plans provide distinct categories of support. Find out the level of support for your plan.

View levels of support