diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2018-08-28 11:59:21 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2018-08-28 12:00:20 -0700 |
commit | d4586b7a9cea6aac7d710d59fd29ce1b9a705449 (patch) | |
tree | 0b96e557d181323d3c018301148753603da61913 /lisp/mail/emacsbug.el | |
parent | 5cb057a854a848be85dc2b81f6497964f5a93dbb (diff) | |
download | emacs-d4586b7a9cea6aac7d710d59fd29ce1b9a705449.tar.gz emacs-d4586b7a9cea6aac7d710d59fd29ce1b9a705449.tar.bz2 emacs-d4586b7a9cea6aac7d710d59fd29ce1b9a705449.zip |
Improve (format "%g" bignum) precision
* src/editfns.c (styled_format): When formatting bignums with
floating-point conversions like %g, use long double if that
would lose less information than double, which is what the
code was already doing for fixnums. On Fedora 28 x86-64, for
example, (format "%.100g" (1- (ash 1 64))) now yields
"18446744073709551615" instead of the numerically incorrect
"18446744073709549568". Also, fix a stray INTEGERP that
can just be FIXNUMP, since bignums are not possible there.
Diffstat (limited to 'lisp/mail/emacsbug.el')
0 files changed, 0 insertions, 0 deletions