Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sloorush opened this issue Mar 3, 2023 · 0 comments
Open

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

sloorush opened this issue Mar 3, 2023 · 0 comments
Labels
bug Something isn't working Size: M Medium sized task

Comments

@sloorush
Copy link
Member

sloorush commented Mar 3, 2023

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.

@sloorush sloorush closed this as not planned Won't fix, can't repro, duplicate, stale Jun 1, 2023
@sloorush sloorush reopened this Jun 1, 2023
@sloorush sloorush added bug Something isn't working Size: M Medium sized task labels Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Size: M Medium sized task
Projects
None yet
Development

No branches or pull requests

1 participant