Ar an ceathrú lá de mí Feabhra, scríobh Giacomo Boffi:
from my ...../etc/Installation
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
Compiling in support for more number types using the GNU MP library.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Using the new GC mark algorithms (KKCC).
[...]
if i try
(insert (format "%g" (exp 709)))^X^E 8.21841e+307
all is well, if i try
(insert (format "%g" (exp 710)))^X^E Arithmetic range error: exp, 710
i get an overflow
my question: how can i use bigfloats in my computations? i have to say
that the xemacs user manual was slightly unhelpful...
It seems buggy to me, and it certainly doesn’t have the nice
convert-to-bignum-on-overflow behaviour that integer computations have.
For your particular example there, you can do:
(insert (format "%g" (expt (coerce e 'bigfloat) 710)))
That gives me 8221840746155466228226, instead of the 308-digit number I
expected. If I set default-float-precision to some higher value, I get
constantly-increasing numbers printed.
--
¿Dónde estará ahora mi sobrino Yoghurtu Nghe, que tuvo que huir
precipitadamente de la aldea por culpa de la escasez de rinocerontes?
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta