Re: Another question on PLEAC docs

2018-06-03 Thread Arie van Wingerden
Great! Thx. 2018-06-03 17:23 GMT+02:00 Alexander Burger : > Hi Arie, > > > It appears to be related to rounding. > > Please explain or point me to the correct docs :) > > Please take a look at Rick Hanson's excellent explanation: > >https://the-m6.net/blog/fixed-point-arithmetic-in-picolisp.

Re: Help needed on your soundex example

2018-06-03 Thread Arie van Wingerden
OK. The name might be a bit misleading :) Added that to the example! 2018-06-03 17:19 GMT+02:00 Alexander Burger : > On Sun, Jun 03, 2018 at 02:17:45PM +0200, Arie van Wingerden wrote: > > It was a bit of a hassle to find a nice example, but I came up with this: > > ... > >: (let (InHostname

Re: Another question on PLEAC docs

2018-06-03 Thread Alexander Burger
Hi Arie, > It appears to be related to rounding. > Please explain or point me to the correct docs :) Please take a look at Rick Hanson's excellent explanation: https://the-m6.net/blog/fixed-point-arithmetic-in-picolisp.html ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Un

Re: Help needed on your soundex example

2018-06-03 Thread Alexander Burger
On Sun, Jun 03, 2018 at 02:17:45PM +0200, Arie van Wingerden wrote: > It was a bit of a hassle to find a nice example, but I came up with this: > ... >: (let (InHostname (clip (in NIL (line T))) InHostnameSoundex (soundex > InHostname)) > (println "InHostname:" InHostname " InHostnameSo

Re: Another question on PLEAC docs

2018-06-03 Thread Arie van Wingerden
Hi Alex, I see that this: : (format (deg2rad 90.0) *Scl) -> "1.570797" is a way to produce the correct answer with the decimal point displayed. Is this the best way to do it? Also I'm not sure what causes the difference between: : (deg2rad 90) -> 2 and: : (deg2rad 90.0) -> 15707

Re: Help needed on your soundex example

2018-06-03 Thread Arie van Wingerden
Hi Alex, agreed. It was a bit of a hassle to find a nice example, but I came up with this: # The following example calls the native Linux function 'getenv' # in order to fetch the hostname from it (env variable = NAME). # Then it reads user input (a guess for the hostname). # Then it