bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange division using mixed integers and floats


From: Johan Bockgård
Subject: Strange division using mixed integers and floats
Date: Mon, 26 Apr 2004 17:02:41 +0200
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (usg-unix-v)

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.2.1 (sparc-sun-solaris2.8, X toolkit)
 of 2002-09-24 on nob.dd.chalmers.se
configured using `configure  --x-includes=/opt/pd/include/ 
--x-libraries=/opt/pd/lib --prefix=/rec/emacs-21.2/'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: iso_8859_1
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Ok, I know why this happens:

(/ 5 4) => 1

But this behaviour is *highly* confusing:

(/ 5 4 2.3) => 0.4347826086956522

Cf. (/ 5 4.0 2.3) => 0.5434782608695653

At least there should be a warning in the manual.

Recent input:
C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O D q 
ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC 
O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B 
ESC O B ESC O B ESC O B C-l ESC O A ESC O A ESC O A 
C-x b C-g ESC O A ESC O B ESC O B ESC x r e p o r t 
TAB RET

Recent messages:
Region saved
-1
0
0.0
Entering debugger...
 [2 times]
Back to top level.
Mark set
iswitchb-read-buffer: Quit
Loading emacsbug...done

-- 
Johan Bockgård




reply via email to

[Prev in Thread] Current Thread [Next in Thread]