From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: bojohan@dd.chalmers.se (=?iso-8859-1?q?Johan_Bockg=E5rd?=) Newsgroups: gmane.emacs.bugs Subject: Strange division using mixed integers and floats Date: Mon, 26 Apr 2004 17:02:41 +0200 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1082993405 16531 80.91.224.253 (26 Apr 2004 15:30:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Apr 2004 15:30:05 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 26 17:29:57 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BI83R-0003gI-00 for ; Mon, 26 Apr 2004 17:29:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BI7vf-00056I-MT for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Apr 2004 11:21:55 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BI7p9-0003Ej-OB for bug-gnu-emacs@gnu.org; Mon, 26 Apr 2004 11:15:11 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BI7kY-0001Re-8y for bug-gnu-emacs@gnu.org; Mon, 26 Apr 2004 11:10:57 -0400 Original-Received: from [129.16.117.10] (helo=eru.dd.chalmers.se) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1BI7dB-00086H-Qx for bug-gnu-emacs@gnu.org; Mon, 26 Apr 2004 11:02:50 -0400 Original-Received: from frealaf.dd.chalmers.se (frealaf.dd.chalmers.se [129.16.116.16]) by eru.dd.chalmers.se (8.12.8/8.12.8) with ESMTP id i3QF2hB9027969 for ; Mon, 26 Apr 2004 17:02:44 +0200 (MEST) Original-Received: from frealaf.dd.chalmers.se (localhost [127.0.0.1]) by frealaf.dd.chalmers.se (8.12.9/8.12.8) with ESMTP id i3QF2gR6018665 for ; Mon, 26 Apr 2004 17:02:43 +0200 (MEST) Original-Received: (from bojohan@localhost) by frealaf.dd.chalmers.se (8.12.9/8.12.9/Submit) id i3QF2flF018664; Mon, 26 Apr 2004 17:02:41 +0200 (MEST) X-Authentication-Warning: frealaf.dd.chalmers.se: bojohan set sender to bojohan@dd.chalmers.se using -f Original-To: bug-gnu-emacs@gnu.org User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (usg-unix-v) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:7760 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:7760 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=3D/opt/pd/include/ --x-libraries= =3D/opt/pd/lib --prefix=3D/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) =3D> 1 But this behaviour is *highly* confusing: (/ 5 4 2.3) =3D> 0.4347826086956522 Cf. (/ 5 4.0 2.3) =3D> 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=20 ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC=20 O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B=20 ESC O B ESC O B ESC O B C-l ESC O A ESC O A ESC O A=20 C-x b C-g ESC O A ESC O B ESC O B ESC x r e p o r t=20 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 --=20 Johan Bockg=E5rd