GNU bug report logs - #13346
24.2; floor and round cannot handle big number produced by (float-time)

Previous Next

Package: emacs;

Reported by: chen bin (陈斌) <chenbin.sh <at> gmail.com>

Date: Thu, 3 Jan 2013 18:05:01 UTC

Severity: normal

Tags: notabug

Found in version 24.2

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: chen bin (陈斌) <chenbin.sh <at> gmail.com>
Cc: 13346 <at> debbugs.gnu.org
Subject: bug#13346: 24.2; floor and round cannot handle big number produced by (float-time)
Date: Thu, 03 Jan 2013 19:28:46 -0500
chen bin (陈斌) wrote:

> Run elisp code (round (float-time)) and you get the error.

That's just how it is in 32-bit Emacs.
From the elisp manual:

  The range of values for integers in Emacs Lisp is -536870912 to
  536870911 (30 bits; i.e., -2**29 to 2**29 - 1) on typical 32-bit
  machines.

You can either use a 64-bit Emacs, or has been suggested, try
configuring --with-wide-int to get more range.

> In GNU Emacs 24.2.1 (i686-pc-linux-gnu)




This bug report was last modified 12 years and 141 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.