Dyalog / ullu

Testing primitives of DyalogAPL
MIT License
2 stars 0 forks source link

cmplx num skipped in membership tests with fr=1287 #16

Open sloorush opened 1 year ago

sloorush commented 1 year ago

Reference from docs: https://help.dyalog.com/latest/#Language/Introduction/Complex%20Numbers.htm?Highlight=complex

Note that Dyalog APL always stores complex numbers as a pair of 64-bit binary floating-point numbers, regardless of the setting of ⎕FR. Comparisons between complex numbers and decimal floating-point numbers will require conversion of the decimal number to binary to allow the comparison. When ⎕FR=1287, comparisons are always subject to ⎕DCT, not ⎕CT - regardless of the data type used to represent a number. This only really comes into play when determining whether the imaginary part of a complex number is so small that it can be considered to be on the real line. However, Dyalog recommends that you do not mix the use of complex and decimal numbers in the same component of an application.