[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in elisp's `format' function
From: |
Rafael D Sorkin |
Subject: |
Bug in elisp's `format' function |
Date: |
Fri, 02 Feb 2001 02:15:14 -0500 |
(emacs-version)
; "GNU Emacs 20.5.1 (alpha-dec-osf4.0b, X toolkit)
; of Tue Feb 8 2000 on suhep.phy.syr.edu"
(setq x (expt 2 32)) ; 4294967296
(format "%d" x) ; "0"
(format "%d" (1+ x)) ; "1"
(format "%d" (1- x)) ; "-1"
(format "%d" (expt 2 31)) ; "-2147483648"
(setq x (1- (expt 2 31))) ; 2147483647
(format "%d" x) ;"2147483647"
- Bug in elisp's `format' function,
Rafael D Sorkin <=