FIX() for negative inputs and unsigned types
Status: Beta
Brought to you by:
m_schellens
test_fix.pro checks for the results of FIX() for negative inputs and unsigned returned types. The IDL docs (http://www.exelisvis.com/docs/FIX.html) don't reference this situation explicitly, but it seems like an inherently undefined operation and as such architecture/implementation specific. And while gdl appears to match IDL on x86_64, e.g.:
GDL> print,FIX(-1.01,type=12) 65535 IDL> print,FIX(-1.01,type=12) 65535
on arm this is returning:
GDL> print,FIX(-1.01,type=12) 0
I have no access to IDL on non-x86 architectures so I can't compare. But my suggestion would be to not test this situation.
Ping? I think we should not test this condition.
Pong? :-)
I agree with you, we should do something.
The test comments by Alain specifically refer to problems with negative inputs reported by a "Nicolas". Everybody could remove the test for negative values, but I would prefer Alain reviews this. Perhaps we should make the test only for intel
architectures, or simply report the errors but let the test pass.
Gilles
On 05/19/2015 05:06 AM, Orion Poplawski wrote:
Related
Bugs:
#622moved to github: https://github.com/gnudatalanguage/gdl/issues/175