Bug in function evaluation

Bug in function evaluation

Anonymous
Not applicable
332 Views
1 Reply
Message 1 of 2

Bug in function evaluation

Anonymous
Not applicable

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

0 Likes
Accepted solutions (1)
333 Views
1 Reply
Reply (1)
Message 2 of 2

Jon.Dean
Alumni
Alumni
Accepted solution

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

0 Likes