From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: 1.75 -> 1-3/4 Date: Tue, 05 Jun 2018 16:18:23 +0300 Message-ID: <87a7s9bcdc.fsf@iki.fi> References: <86lgbt4cb6.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1528204647 4996 195.159.176.226 (5 Jun 2018 13:17:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 5 Jun 2018 13:17:27 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 05 15:17:23 2018 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 1fQBpz-0001Bm-9x for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Jun 2018 15:17:23 +0200 Original-Received: from localhost ([::1]:46653 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQBs4-0007ap-UV for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Jun 2018 09:19:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQBr6-0007Ir-6h for help-gnu-emacs@gnu.org; Tue, 05 Jun 2018 09:18:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQBr1-0005St-Gs for help-gnu-emacs@gnu.org; Tue, 05 Jun 2018 09:18:32 -0400 Original-Received: from mail.kapsi.fi ([2001:67c:1be8::25]:51507) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQBr1-0005R8-47 for help-gnu-emacs@gnu.org; Tue, 05 Jun 2018 09:18:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:To:From; bh=4MazUQgEbFUprz9Pgl4lNNKMBpTTm1gLHkXZfHCg0N8=; b=eUfPMYlMRJSObUNmEUAy7FTTnXM0ojLpaWG3MyxgORzQ9Y+6QlvDUqHs5eOXlMVtMhfgFlNdwpSUPeWw04U47pLFzpJryKsUhXRKtmPRvlH0sRXTb6oS66Q+mTj+ChSXfVRl/tqsLf2yPBBZeiuBACZdQEXms/AXwelTvwJIGaKA7iLg+Y+Ht2N+pvTb2Ekqoi7eCO07wU3wpMvOzacLhsSjKywiJ0qvoCcAS+Cgrpy8XCd20kdf13pKzkDvap4I3TbVf+S+wXpIiwusSDCe17+7KJwQP+hHo7MKq9no+1ACqaIo1KYUytzjcKXr+BObotIiWvGOnEkrPl7vxZIMng==; Original-Received: from mobile-access-bceec5-79.dhcp.inet.fi ([188.238.197.79] helo=mithlond) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQBqx-0000fk-RJ for help-gnu-emacs@gnu.org; Tue, 05 Jun 2018 16:18:23 +0300 In-Reply-To: <86lgbt4cb6.fsf@zoho.com> (Emanuel Berg's message of "Tue, 05 Jun 2018 15:01:33 +0200") X-SA-Exim-Connect-IP: 188.238.197.79 X-SA-Exim-Mail-From: tlikonen@iki.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:67c:1be8::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:116964 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Emanuel Berg [2018-06-05 15:01:33+02] wrote: > Did anyone do the equivalent of this ("ths" zsh below) in Elisp or any > other Lisp? Common Lisp has RATIONAL and RATIONALIZE functions which convert real numbers to rational numbers. See the specification: http://www.lispworks.com/documentation/HyperSpec/Body/f_ration.htm "Decimals" library for Common Lisp can parse a decimal number string and convert it to a rational number. See function PARSE-DECIMAL-NUMBER: https://github.com/tlikonen/cl-decimals =2D-=20 /// Teemu Likonen - .-.. // // PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 /// --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEkhZiiC54Bnj5a16Skzo1BB5+rVEFAlsWjZ8ACgkQkzo1BB5+ rVHqZwf/TTwfcmIsC1Xe1GHdOi3gQoCvCYdc59MvyPS82jtf4YlgV9rV264DeHq4 SuEvt45MCPBz4qvODE9Z/kZCYgJ2r++8rzKQPDwcpXuNzXrlfzDsEEc8LexY73nA ZAMqSMiqpuPIJ8tRGD9IQnB2GVAhya7WwIFF1Y3SBZH+OeQgIPM8AHCM8XTwYAv9 Ck/i/lMx6F/nUp6ZoVfpdBeoMszpsvl0TFUSTBcnBftsaedor5xxnXwqTFfr3qcG NG1fj+wD911XlOuA5c5XrEcPwmkvD6kCe3yi0AqsZFqgVwHfFykQfC7D1CeUudfd ydMRoLebJxyu746/Y/UxEOwBq8BJUA== =4Ity -----END PGP SIGNATURE----- --=-=-=--