sprintf("%e",exp(511));
(2) Result: "8.404e+221"
sprintf("%f",exp(511));
zsh: segmentation fault pike
I'll add it to the testsuite if noone protests.
Hmm. My data point:
exp(101);
(1) Result: 73070599793680668906492145854235224565612544.000000
exp(102);
Segmentation fault
Pike 7.4.13 on Linux 2.4.17 i686, glibc-2.3.1
The segfault is due to sprintf("%O",...); write("%e", exp(x)) is OK up to x=710 (at which point it turns "inf" of course).
Aah, nearly forgot: --with-long-double-precision.
/ rjb
Previous text:
pike-devel@lists.lysator.liu.se