Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bug in function evaluation

1 REPLY 1
SOLVED
Reply
Message 1 of 2
sdotson
279 Views, 1 Reply

Bug in function evaluation

One of the users on mCADForums discovered this bug....

 

"I have a value of 3516.41mm and I want to round it to the nearest whole number.
I have tried to use the round command and it seems to round up to the nearest 10 so 3516.41mm would round up to 3520mm. So how do I get would I go about rounding to the nearest whole number?"

 

I suspect this is due to Inventor's internal units being cm.  However as we specific "a" to be in mm and "b" to be in mm this should not be happeneing.  YOu can cheat a bit to get the right answer but in my opinion this is a bug.

 



-Sean Dotson, PE

www.mcadforums.com

1 REPLY 1
Message 2 of 2
Jon.Dean
in reply to: sdotson

Hi Sean,

You can use the following formula round(a/1)*1 = 3516

You could also consider using "ceil" or "floor".

Cheers

Jon



Jon Dean

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report