setdiff() with encoded integers returns them in decreasing order (unlike with doubles and with other set functions)
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
setdiff() with encoded integers returns them in decreasing order (unlike with doubles and with other set functions)
--> setdiff([1 2 3 4 5 6], [2 3.5 5])
ans =
1. 3. 4. 6. // increasing order
--> setdiff(int8([1 2 3 4 5 6]),int8([2 3.5 5]))
ans =
6 4 1 // decreasing order: KO
ERROR LOG:
----------
None. Wrong answer
HOW TO REPRODUCE THE BUG:
-------------------------
setdiff(int8([1 2 3 4 5 6]), int8([2 3.5 5]))
OTHER INFORMATION:
------------------
Same situation with Scilab 6.0.1