From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Strange division using mixed integers and floats Date: Wed, 28 Apr 2004 06:13:14 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1083147769 27860 80.91.224.253 (28 Apr 2004 10:22:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Apr 2004 10:22:49 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Apr 28 12:22:45 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BImDE-0005KL-00 for ; Wed, 28 Apr 2004 12:22:44 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BImDE-00026T-00 for ; Wed, 28 Apr 2004 12:22:44 +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 1BImBl-0001s3-5Q for emacs-devel@quimby.gnus.org; Wed, 28 Apr 2004 06:21:13 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BIm8P-0000Ni-3S for emacs-devel@gnu.org; Wed, 28 Apr 2004 06:17:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BIm7b-00008Y-8B for emacs-devel@gnu.org; Wed, 28 Apr 2004 06:17:27 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BIm69-0008Ix-JJ for emacs-devel@gnu.org; Wed, 28 Apr 2004 06:15:25 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1BIm42-0001H5-4B; Wed, 28 Apr 2004 06:13:14 -0400 Original-To: bojohan@dd.chalmers.se (=?iso-8859-1?q?Johan_Bockg=E5rd?=) In-reply-to: (bojohan@dd.chalmers.se) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22290 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22290 But this behaviour is *highly* confusing: (/ 5 4 2.3) => 0.4347826086956522 Cf. (/ 5 4.0 2.3) => 0.5434782608695653 We could change the functions to convert the arguments to floating point at the start if any is floating point. Is there any reason not to do that?