API - Math functions evaluating weird

API - Math functions evaluating weird

Anonymous
Not applicable
553 Views
1 Reply
Message 1 of 2

API - Math functions evaluating weird

Anonymous
Not applicable

 

There seems to be an issue with the Math functions.

 

I defined a param which is based on an expression using another param, the resultant value is 7.5

 

Please see the attached image for the results of applying floor/ceil/round to the param and a then using just a number 7.5

 

 

0 Likes
554 Views
1 Reply
Reply (1)
Message 2 of 2

liujac
Alumni
Alumni

Welcome to the community. Thanks for reporting this issue. This is not only an API defect, about also an UI defect. The similar issue was reported in another thread: http://forums.autodesk.com/t5/design-validate-document/rounding-values/m-p/5969043. One defect was logged for this in our internal defect tracking system. One workaround mentioned for now is to use unitless by setting the “units” parameter of the add method to empty string. Can you have a try if this works for you?

 

Thanks,

Jack

0 Likes