[Maxima] CLOS and GCL problems.
Raymond Toy (RT/EUS)
raymond.toy at ericsson.com
Tue Dec 18 16:10:30 CST 2007
Richard Fateman wrote:
> Also I found that
> (* 1.0d0 0.1e0) returns
> 0.100000001
>
> instead of
>
> 0.10000000149011612d0
That's because in gcl, a single-float is the same as a double-float
which is the same an IEEE double-precision. If you want IEEE
single-precision, it's a gcl short-float:
(* 1d0 0.1s0) -> 0.10000000149011612d0
A long-float is also an IEEE double-precision float.
Ray
More information about the Maxima
mailing list