[Openmcl-devel] BUG: FLOAT does not convert to single-float

Kevin Reid kpreid at switchb.org
Thu Nov 17 09:03:00 PST 2011


On Nov 17, 2011, at 11:38, Eric Marsden wrote:

> ,----
> | ? (lisp-implementation-version)
> | "Version 1.8-dev  (LinuxARM32)"
> | ? (float 1.0d0)
> | 1.0D0
> `----

This is not a bug, according to my reading of the CLHS:

“If prototype is not supplied, then 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.”
— <http://www.lispworks.com/documentation/HyperSpec/Body/f_float.htm>

Here, the prototype is not supplied, and the number is a float, so it is returned.

-- 
Kevin Reid                                  <http://switchb.org/kpreid/>




More information about the Openmcl-devel mailing list