Diagnosing APL Numeric Comparison Failures Caused by Comparison Tolerance (⎕CT)
Two numbers that look identical evaluate to 0 with = because the default comparison tolerance hides tiny binary differences.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Two numbers that look identical evaluate to 0 with = because the default comparison tolerance hides tiny binary differences.
Goal Determine whether comparison tolerance ⎕CT applies to complex numbers nested inside arrays, and whether enclosing primitives such as match (≡) and find (⍳) propagate that tolerance to complex leaf elements. Uncertainty ⎕CT is well established for floating-point equality, with a default commonly near 1E-14 in Dyalog APL and implementation-specific elsewh