Hi Frederick,

thanks, fixed in SVN 996.

/// Jürgen


On 08/16/2017 06:55 AM, Frederick Pitts wrote:
Hello all,

	With gnu-apl configured with RATIONAL_NUMBERS_WANTED=YES, I
observe the following:

      ⎕PS ← 1 22
      x ← 3 ÷ 1
      x + 1 ÷ 2
╔═══╗
║7÷2║
╚═══╝
      x × 1 ÷ 2
╔═══╗
║1.5║
╚═══╝

	The last result should be 3÷2. In general, multiplication of
integers and rationals should yield rationals or integers (which are
rationals with a denominator of 1), not floats.  The exception would be
when the numerator or denominator of an intermediate rational result
overflows the integer range.

Regards,

Fred 



Reply via email to