Discussion:
[Bug-apl] Positive sum displayed as neg fraction
Ala'a Mohammad
2017-08-16 20:44:04 UTC
Permalink
Hi,

An example where the display is showing 'neg' when the number is positive.

⎕ps ← 1 0
+/2÷⍳10000
¯227306580757051271÷18407405366253039616

⍎⍕+/2÷⍳10000
¯0.01234864861

⍝ or

¯227306580757051271÷18407405366253039616
¯0.01234864861

++/2÷⍳10000
5.778191391

This is under 998.

Regards,

Ala'a
Juergen Sauermann
2017-08-19 16:39:27 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Helvetica, Arial, sans-serif">Hi Ala'a,<br>
<br>
thanks, fixed in <b>SVN 999</b>.<br>
<br>
/// Jürgen<br>
<br>
</font><br>
<div class="moz-cite-prefix">On 08/16/2017 10:44 PM, Ala'a Mohammad
wrote:<br>
</div>
<blockquote
cite="mid:CAJ--6mbs-8i+***@mail.gmail.com"
type="cite">
<pre wrap="">Hi,

An example where the display is showing 'neg' when the number is positive.

⎕ps ← 1 0
+/2÷⍳10000
¯227306580757051271÷18407405366253039616

⍎⍕+/2÷⍳10000
¯0.01234864861

⍝ or

¯227306580757051271÷18407405366253039616
¯0.01234864861

++/2÷⍳10000
5.778191391

This is under 998.

Regards,

Ala'a


</pre>
</blockquote>
<br>
</body>
</html>

Continue reading on narkive:
Search results for '[Bug-apl] Positive sum displayed as neg fraction' (Questions and Answers)
4
replies
Easy Programmming Question.?
started 2011-06-03 03:52:02 UTC
programming & design
Loading...