|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] Rational Numbers |
Date: | Sun, 23 Jul 2017 15:28:27 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Hi Elias, the format bug is fixed in SVN 983. Rational numbers are exact, they are stored as a 64 bit numerator and a 64 bit denominator. You can convert a rational to a float with monadic +: ⎕PS←1 0 ⍝ display quotients 2÷3 2÷3 +2÷3 0.6666666667 Normally monadic + is not needed because conversion to double happens automatically where needed. /// Jürgen On 07/21/2017 06:19 AM, Elias Mårtenson
wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |