From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: program to compute gears, with table Date: Fri, 8 Sep 2017 13:27:50 +0200 Message-ID: <20170908112750.GA23994@tuxteam.de> References: <86bmmlu54a.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed X-Trace: blaine.gmane.org 1504870170 29378 195.159.176.226 (8 Sep 2017 11:29:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 8 Sep 2017 11:29:30 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 08 13:29:13 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dqHSu-00065Y-J7 for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Sep 2017 13:28:52 +0200 Original-Received: from localhost ([::1]:44765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqHT1-0000Bv-KP for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Sep 2017 07:28:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqHS7-00009d-Fj for help-gnu-emacs@gnu.org; Fri, 08 Sep 2017 07:28:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqHS3-0002Ck-1W for help-gnu-emacs@gnu.org; Fri, 08 Sep 2017 07:28:03 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:40316 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dqHS2-00026V-Qx for help-gnu-emacs@gnu.org; Fri, 08 Sep 2017 07:27:58 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1dqHRu-0006Jx-QW for help-gnu-emacs@gnu.org; Fri, 08 Sep 2017 13:27:50 +0200 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114197 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Sep 08, 2017 at 06:09:30AM -0500, Skip Montanaro wrote: [...] > * Why the 1.0 divisor when computing gear? because... (/ 2 3) => 0 (/ 2 3 1.0) => 0.6666666666666666 (division defaults to integer division when all args are int) As to the rest... I'll defer to Emmanuel :-) Cheers - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEUEARECAAYFAlmyfrYACgkQBcgs9XrR2kZ7VwCfb/Q8fxCgdzAZoTDvv0x1oYOf gHYAl2aPVP/v2vsz9f/DovXuOfWvYCg= =UcUu -----END PGP SIGNATURE-----