gcl 2.2.1-6 "truncate" broken
We recently installed gcl 2.2.1-6 on our intel machines. The
"truncate" function is broken, as shown by the example below (from
the gclinfo page). Should we downgrade to a version that works, or
what?
Thanks for any suggestions.
Danny Heap
gibbs.med.utoronto.ca
-----------------------------------------------------------------
Below I run an example from the gcl info pages, but the resulting
output doesn't resemble that in the info pages.
-----------------------------------------------------------------
<dirac>$ gcl
GCL (GNU Common Lisp) Version(2.2.1) Fri Sep 24 14:42:27 EDT 1999
Licensed under GNU Public Library License
Contains Enhancements by W. Schelter
>(dolist (n '(2.6 2.5 2.4 0.7 0.3 -0.3 -0.7 -2.4 -2.5 -2.6))
(format t "~&~4,1@F ~2,' D ~2,' D ~2,' D ~2,' D"
n (floor n) (ceiling n) (truncate n) (round n)))
+2.6 0 3 0 0
+2.5 0 3 0 0
+2.4 0 3 0 0
+0.7 0 1 0 0
+0.3 0 1 0 0
-0.3 -1 0 0 0
-0.7 -1 0 0 0
-2.4 -1 -2 0 0
-2.5 -1 -2 0 0
-2.6 -1 -2 0 0
NIL
>
-----------------------------------------------------------------
Reply to: