summaryrefslogtreecommitdiff
path: root/lisp/mail/emacsbug.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-08-28 11:59:21 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-08-28 12:00:20 -0700
commitd4586b7a9cea6aac7d710d59fd29ce1b9a705449 (patch)
tree0b96e557d181323d3c018301148753603da61913 /lisp/mail/emacsbug.el
parent5cb057a854a848be85dc2b81f6497964f5a93dbb (diff)
downloademacs-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