Re: Behavior of struct and single-precision floating-point

2021-12-08 Thread Alexander Burger
Hi Kevin, > I'm getting strange results with the following: > ... > : (scl 16) > -> 16 > : (setq Ptr (%@ "malloc" 'P 4)) > -> 9674752 > : (struct Ptr NIL (list -1.0 1280.0)) > -> NIL > : (format (car (struct Ptr '(-1.0 . 1))) *Scl) > -> "-103.5058256155770880" > ... > The value seems completely

PilCon tomorrow

2021-12-08 Thread Alexander Burger
Hi all, tomorrow, the 10th, is PilCon day: https://meeting.itship.ch/PilCon at 8:00 UTC Any questions or ideas welcome! ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Behavior of struct and single-precision floating-point

2021-12-08 Thread Kevin Ednalino
Hello, I'm getting strange results with the following: : (version) 21.11.17 -> (21 11 17) : (scl 16) -> 16 : (setq Ptr (%@ "malloc" 'P 4)) -> 9674752 : (struct Ptr NIL (list -1.0 1280.0)) -> NIL : (format (car (struct Ptr '(-1.0 . 1))) *Scl) -> "-103.5058256155770880" : (struct Ptr (cons 'B 4))