bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] Integer - rational reciprocal anomaly


From: Frederick Pitts
Subject: [Bug-apl] Integer - rational reciprocal anomaly
Date: Wed, 16 Aug 2017 10:17:25 -0500

Hello all,

        Using SVN 996, configured with RATIONAL_NUMBERS_WANTED=YES, I
observe the following:

      ⎕PS ← 1 22
      ÷ ¯2
╔══════════════════════╗
║1÷18446744073709551614║
╚══════════════════════╝
      1 ÷ ¯2
╔════╗
║¯1÷2║
╚════╝
      ÷ 2
╔═══╗
║1÷2║
╚═══╝
      1 ÷ 2
╔═══╗
║1÷2║
╚═══╝
        The first result above is wrong.  Additionally, taking the
reciprocal of any other negative integer yields an incorrect result.

Regards,

Fred




reply via email to

[Prev in Thread] Current Thread [Next in Thread]