From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#5114: 23.1.50; (string-to-number (number-to-string most-positive-fixnum)) Date: Thu, 03 Dec 2009 15:52:16 -0500 Message-ID: References: Reply-To: Stefan Monnier , 5114@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1259874491 26913 80.91.229.12 (3 Dec 2009 21:08:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Dec 2009 21:08:11 +0000 (UTC) Cc: 5114@emacsbugs.donarmstrong.com To: Helmut Eller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 03 22:08:00 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NGIu4-0007Th-8Y for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Dec 2009 22:07:56 +0100 Original-Received: from localhost ([127.0.0.1]:52842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGIu3-0003jX-Qm for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Dec 2009 16:07:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGItf-0003Ow-Nj for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2009 16:07:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGItb-0003L4-I8 for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2009 16:07:31 -0500 Original-Received: from [199.232.76.173] (port=37110 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGItb-0003Kx-87 for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2009 16:07:27 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:42500) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NGIta-0003a7-OS for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2009 16:07:27 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB3L7O6f022982; Thu, 3 Dec 2009 13:07:24 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nB3L049q021460; Thu, 3 Dec 2009 13:00:04 -0800 Resent-Date: Thu, 3 Dec 2009 13:00:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 03 Dec 2009 21:00:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 5114 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5114-submit@emacsbugs.donarmstrong.com id=B5114.125987354020898 (code B ref 5114); Thu, 03 Dec 2009 21:00:04 +0000 Original-Received: (at 5114) by emacsbugs.donarmstrong.com; 3 Dec 2009 20:52:20 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from pruche.dit.umontreal.ca (pruche.dit.umontreal.ca [132.204.246.22]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB3KqH3C020894 for <5114@emacsbugs.donarmstrong.com>; Thu, 3 Dec 2009 12:52:19 -0800 Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id nB3KqGLX025359; Thu, 3 Dec 2009 15:52:16 -0500 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 854353A170; Thu, 3 Dec 2009 15:52:16 -0500 (EST) In-Reply-To: (Helmut Eller's message of "Thu, 03 Dec 2009 15:36:27 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3420=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 03 Dec 2009 16:07:31 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:33179 Archived-At: > (setq x (string-to-number (number-to-string most-positive-fixnum))) > (= most-positive-fixnum x) => nil > x is 2305843009213693440 but it should be most-positive-fixnum > which is 2305843009213693951. > The test > (= most-positive-fixnum > (string-to-number (number-to-string most-positive-fixnum))) > seems to work as expected on 32-bit machines but not so on 64 bit. Indeed, it passes through a floating point conversion, so there's only abour 52 bit of precesion. Stefan