Dyalog / Dyalog/ullu

cmplx num skipped in membership tests with fr=1287

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
bug Size: M
Dominant language
APL
Stars
5
Forks
4
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.