all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: <tomas@tuxteam.de>
To: help-gnu-emacs@gnu.org
Subject: Re: (- 2.8 1.6) ; 1.1999999999999997
Date: Mon, 10 Feb 2020 22:31:14 +0100	[thread overview]
Message-ID: <20200210213114.GA25704@tuxteam.de> (raw)
In-Reply-To: <8736biywcn.fsf@ebih.ebihd>

[-- Attachment #1: Type: text/plain, Size: 516 bytes --]

On Mon, Feb 10, 2020 at 10:18:48PM +0100, Emanuel Berg via Users list for the GNU Emacs text editor wrote:
> What's this?
> 
>     (- 2.8 1.6) ; 1.1999999999999997
> 
> With the TI-84 Plus,
> 
>     2.8-1.6=1.2
> 
> Normally I'm all pro-Lisp but here...

Those numbers aren't exactly representable as binary fractions
(2.8 = 14/5, 1.6 = 8/5). So things like this happen. It's not
Lisp, but an artifact of the underlying representation (as
binary "floats" with limited precision).

Cheers
-- tomás

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2020-02-10 21:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-10 21:18 (- 2.8 1.6) ; 1.1999999999999997 Emanuel Berg via Users list for the GNU Emacs text editor
2020-02-10 21:31 ` tomas [this message]
2020-02-10 21:33 ` Joost Kremers
2020-02-10 23:10   ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-02-11  1:31 ` Stefan Monnier
2020-02-11  1:50   ` Alexandre François Garreau
2020-02-11  1:55   ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-04-07 14:00   ` Bruno Félix Rezende Ribeiro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200210213114.GA25704@tuxteam.de \
    --to=tomas@tuxteam.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.