[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-apl] Access to rational number numerator and denominator
From: |
Louis de Forcrand |
Subject: |
Re: [Bug-apl] Access to rational number numerator and denominator |
Date: |
Tue, 29 Aug 2017 00:08:59 +0200 |
Hi,
No APL kb with me right now, sorry :(
1 LCM n
gives the numerator of a fraction (floating or exact). If you need the
denominator, do the same with the inverse of n. If you need both, for example:
1 LCM n POW 1 _1
Cheers,
Louis
> On 28 Aug 2017, at 23:24, Frederick Pitts <address@hidden> wrote:
>
> Hello,
>
> Is there an existing mechanism for accessing rational number
> numerator and denominator parts analogous to that for accessing complex
> number real and imaginary parts? If yes, please let me know how. If
> no, can a mechanism be implemented?
>
> Respectfully,
>
> Fred
>