GNU bug report logs - #9411
23.2; Improper integer conversion (rounding?) on data entry in Calc

Previous Next

Package: emacs;

Reported by: Keith Browne <tuxedo <at> htq.org>

Date: Tue, 30 Aug 2011 21:54:01 UTC

Severity: normal

Found in version 23.2

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Keith Browne <tuxedo <at> htq.org>
Cc: 9411 <at> debbugs.gnu.org
Subject: bug#9411: 23.2; Improper integer conversion (rounding?) on data entry in Calc
Date: Wed, 31 Aug 2011 00:14:44 +0200
Keith Browne <tuxedo <at> htq.org> writes:

> M-x calc [RETURN]
> 90000000000000010 [RETURN]
> (that's 9, followed by fourteen 0s, followed by 10)
>
> - Observe that 90000000000000016 appears on the stack, not
> 90000000000000010.

That is an inaccuracy in string-to-number that should be fixed in Emacs
24.  You can work around it by reducing math-bignum-digit-length.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




This bug report was last modified 13 years and 263 days ago.

Previous Next


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