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

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

Re: program to compute gears, with table


From: tomas
Subject: Re: program to compute gears, with table
Date: Fri, 8 Sep 2017 13:27:50 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

-----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-----



reply via email to

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