On Sat, 28 Feb 2004, blake wrote:

> Graham's Ansi Common Lisp says that (float x) should generate a
> single-float, but I get the following on my 18e version on RH 8.0:

ANSI sayeth:

 "if the number is already a float, it is returned; otherwise, a float is
  returned that is mathematically equal to number but is a single float."

You can, however pass a prototype to float:

 (float pi 1.0s0) => 3.1415927

or use coerce:

 (coerce pi 'single-float) => (coerce pi 'single-float)

Cheers,

 -- Nikodemus

Reply via email to