Re: [Bug-apl] Access to rational number numerator and denominator

2017-08-29 Thread Frederick Pitts
Hello Jürgen, After reading your email and the apl.html documentation on ⎕CR and so, I've have two questions: 1) How does one know B is a rational number? The apl.html documentation for 26 ⎕CR B does not showthat there is a cell type for rationals and I could not locate one in the

Re: [Bug-apl] GNU APL port for OpenBSD

2017-08-29 Thread enztec
apl on openbsdopenbsd on rpi nice to see openbsd shaking off the cobwebs On Tue, 29 Aug 2017 19:30:56 +0200 Juergen Sauermann wrote: > Hi, > > the rational numbers are still quite new, so I would like to wait a little > longer before > making a new release. > > Rational numbers cannot

Re: [Bug-apl] GNU APL port for OpenBSD

2017-08-29 Thread Juergen Sauermann
Hi, the rational numbers are still quite new, so I would like to wait a little longer before making a new release. Rational numbers cannot become the default because some computations with them take considerably more time than their float

Re: [Bug-apl] Access to rational number numerator and denominator

2017-08-29 Thread Juergen Sauermann
Hi Fred, the existing mechanism is 27 ⎕CR B to get the numerator of B and 28 ⎕CR to get the denominator > 0 of a quotient or 0 if the number is not a quotient (and then 27 ⎕CR is the double B cast to uint64_t. Unfortunately there was a bug 28 ⎕

Re: [Bug-apl] Access to rational number numerator and denominator

2017-08-29 Thread Frederick Pitts
Guys, To make it clear, I'm not asking for bigints. I'm just seeking to get the maximum benefit of having rational numbers with, as Xtian says, ~63-bit numerator and denominators. As long as you limit yourself to using addition, subtraction, multiplication, and division and avoid overrunn