Unpredictable floor() !!!
Unpredictable floor() !!!
(OP)
I wrote following expressions
i=24
j=floor(i/12)
Surprisingly I got j=1 !!
To cross-check the result I created one more expression
k=floor(2)
which gave me k=2 !!
John, why floor() function is so unpredictable? I checked it in NX4 as well as in NX6.
i=24
j=floor(i/12)
Surprisingly I got j=1 !!
To cross-check the result I created one more expression
k=floor(2)
which gave me k=2 !!
John, why floor() function is so unpredictable? I checked it in NX4 as well as in NX6.





RE: Unpredictable floor() !!!
Note that I will open a PR and will let you know what I learn.
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Unpredictable floor() !!!
RE: Unpredictable floor() !!!
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Unpredictable floor() !!!
RE: Unpredictable floor() !!!
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Unpredictable floor() !!!
RE: Unpredictable floor() !!!
First, we've provided what we consider as being an acceptable workaround, that is using 'Constant' valued Expressions when utilizing either the Floor or Ceiling functions.
And second, the problem ONLY manifests itself when working in Imperial (English) units. And while I know that some here in the U.S. will not appreciate this, it's been estimated that something close to 80% of all NX licenses are being used by organizations who work exclusively in Metric units.
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.