From: Kai Yue

Subject: Changing printing format for float

Date: 2000-7-7 12:04


Hi,

  I wonder if there is a way in ACL to control the number of
digits after the decimal point in printing floating point numbers using
PRINT. (Something like a counterpart of *read-default-float-format*?) In

many cases, I would like the lisp listener to only print 3 or 4 digits
after
the decimal point. AKCL has a variable that allows the user to control
that. Actually, PRINT in AKCL defaults to a short printing format for
floats. I just can not figure out how to do this in ACL, short of
redefining
PRINT.

  Note that I only want the printing format to be changed and I don't
want
to change the float itself to "short-float", for example. Also, I want
to learn a
"built-in" way of modifying the behavior of PRINT, not how to define a
different function.

  Thanks a lot in advance.


            Kai Yue