From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: (- 2.8 1.6) ; 1.1999999999999997 Date: Mon, 10 Feb 2020 22:33:52 +0100 Message-ID: <877e0urutb.fsf@fastmail.fm> References: <8736biywcn.fsf@ebih.ebihd> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="16599"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.3.7; emacs 26.3 To: Emanuel Berg via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 10 22:34:44 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j1GhW-0004Ao-Ty for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 10 Feb 2020 22:34:42 +0100 Original-Received: from localhost ([::1]:39908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1GhV-00037C-SS for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 10 Feb 2020 16:34:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50583) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1Ggu-00036s-Ut for help-gnu-emacs@gnu.org; Mon, 10 Feb 2020 16:34:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1Ggs-000336-MD for help-gnu-emacs@gnu.org; Mon, 10 Feb 2020 16:34:04 -0500 Original-Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:43415) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j1Ggs-0002nD-0i for help-gnu-emacs@gnu.org; Mon, 10 Feb 2020 16:34:02 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 5A1BE626 for ; Mon, 10 Feb 2020 16:33:55 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 10 Feb 2020 16:33:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm2; bh=Rt8gjaghZUt/chgilF1UuRcsPl UqsAZ9qJe0UxJKcTY=; b=Kwb48+IRp6UaEaRGJNtfYaRfuCUXPyPebMz0eQY2PF n5NER3ENzG7PtTk/l9geS0HyBa9dUsm4bttp4K1toTdivHKFgCw3SI7bXg0S/9G+ ta6WpO+2ILjRT63XDpKM1N/PscyA+yTGCXdAEA/1zijAcWnK45RiUDZHTGTDao2q 22tlgcUcyzCeSCSHw/cx9dLZmG/BZcCEo4o8imkjf2q181M+qjigHgrHO71PAOhr oTdVDez9+AtBI/gm9xZC6U5Ps3YntEhRwiJAKRc+RlbuZaYAEV5WAtEiotzIfuUq DjnHwTXCcbYWA8gqMyDxtat7sizAIP7UxGyjsutma19A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Rt8gja ghZUt/chgilF1UuRcsPlUqsAZ9qJe0UxJKcTY=; b=oGfw3wQa0jKtT5Ot38eHxV MO4SfaHwxccPEYC2Qu4Eu9cnP64ESk3Uf0F/QoqXd2AC01If7v+4ScY0fhLKCVTk 6zfWmqRu+sp+pCogcUJTsr5TOATGIAMBF5MD4+bliCrW66d/aR8qKrauXXDG4mU7 ehwt+Qfd/fmRnFFCM3zDHjEdP2TXcn2vIC1fCRfbulrxVXAUJ0QwIM0Ww3YAjRwA DGmPbKOZiX7TCVMVM3iBulF+X434lNQfs8u4fwUnAgPPUgqD2eynFssQneINFom+ HrHOniuwLnXOIbY6X1gKdobcfmA6Z3Mxk4uf+Xt2GpYgZxoKbEYTPl4twp7lpUfA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedriedugddugedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufgjfffkgggtsehttdertddtredtnecuhfhrohhmpeflohhoshht ucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhmqe enucffohhmrghinhepfhhlohgrthhinhhgqdhpohhinhhtqdhguhhirdguvgenucfkphep leehrdeltddrvddtuddrheegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from Swift.fastmail.com (ip5f5ac936.dynamic.kabel-deutschland.de [95.90.201.54]) by mail.messagingengine.com (Postfix) with ESMTPA id 91B9F328005A for ; Mon, 10 Feb 2020 16:33:54 -0500 (EST) In-reply-to: <8736biywcn.fsf@ebih.ebihd> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.123.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122392 Archived-At: On Mon, Feb 10 2020, 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... > > Actually zsh also reports > > echo $(( 2.8 - 1.6 )) # 1.1999999999999997 joost@Swift:~$ clojure Clojure 1.9.0 user=> (- 2.8 1.6) 1.1999999999999997 user=> (+ 0.1 0.2) 0.30000000000000004 user=> joost@Swift:~$ python Python 2.7.17 (default, Nov 7 2019, 10:07:09) [GCC 7.4.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> 2.8 - 1.6 1.1999999999999997 >>> 0.1 + 0.2 0.30000000000000004 >>> joost@Swift:~$ > so perhaps some CPU (ALU) thing? It's a binary thing, and it's well-known: https://floating-point-gui.de/ -- Joost Kremers Life has its moments