Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by h1439878.stratoserver.net (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id uB2ABEnj002239 for ; Fri, 2 Dec 2016 11:11:15 +0100 Received: from relay2.uni-heidelberg.de ([129.206.119.212]) by mx-ha.gmx.net (mxgmx006 [212.227.15.9]) with ESMTPS (Nemesis) id 0MeLct-1c34qM1LP5-00QCTA for ; Fri, 02 Dec 2016 11:11:08 +0100 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.15.2/8.15.2) with ESMTPS id uB2A9JKB022963 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 2 Dec 2016 11:09:19 +0100 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id uB29H11I008349; Fri, 2 Dec 2016 11:09:19 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 14928455 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 2 Dec 2016 11:08:01 +0100 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.119.212]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id uB2A7u6Q012913 for ; Fri, 2 Dec 2016 11:07:56 +0100 Received: from smtp3.clear.net.nz (smtp3.clear.net.nz [203.97.33.64]) by relay2.uni-heidelberg.de (8.15.2/8.15.2) with ESMTP id uB2A7kVC019054 for ; Fri, 2 Dec 2016 11:07:51 +0100 Received: from mxin1-orange.clear.net.nz (lb1-srcnat.clear.net.nz [203.97.32.236]) by smtp3.clear.net.nz (CLEAR Net Mail) with ESMTP id <0OHJ00LR0VYJA700@smtp3.clear.net.nz> for LATEX-L@listserv.uni-heidelberg.de; Fri, 02 Dec 2016 22:07:41 +1300 (NZDT) Received: from 118-92-74-19.dsl.dyn.ihug.co.nz (HELO [127.0.0.1]) ([118.92.74.19]) by smtpin1.clear.net.nz with ESMTP; Fri, 02 Dec 2016 22:07:37 +1300 MIME-version: 1.0 Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit X-Antivirus: avast! (VPS 161201-1, 02/12/2016), Outbound message X-Antivirus-Status: Clean User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 Message-ID: <584139D8.1000208@clear.net.nz> Date: Fri, 2 Dec 2016 22:07:36 +1300 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Andrew Parsloe Subject: Rounding quirk in l3fp To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: Envelope-To: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3; X-GMX-Antivirus: 0 (no virus found) X-UI-Filterresults: notjunk:1;V01:K0:0ieXrYXt5FI=:M1+JEKQZa1wzwzPSaOnj+kPG5t s6Np8ikX2hX5DbndMroiwqtHqQRl6XA4/BxZ+GuEtRTUrgwpL34dUDRTySQw5VzOcIOUoIZQj NK7bMHcag1t+PFmn+QEbozkTGqesSlb5pWIqudyXnVUYVEj4HGPZRXMv1eHIDwTD647UHZgdl CgVluNwkyTA8bBs5AjsGO9oSiiZyKtkFWvq87RNvZ1JOOTTjggaRZMcewUEh/GL5SFl5Je81Q nYg5MjzYxen3KjpExmbEHuOT1comyUCgtIUxLdNjcVh5fVQEYnrtXr+0Wf2zVFTPt3SirzBhN g9K5IXMYZNr4Oe0HNQK8eWM3f0Y30gsYZvIdY4gnOpXGSmMw+RDg0bvREndSbv1tcSYJmx7Qk kOIHjgMiyOtLjEevWzBOSZSu0CjP5W2m71wrv3TtPYq3DQ1T7tUv6uUkUZ2Dc5jsm6UX7ku/g TbuWYPZir6KLsRHYHpZRsx6bNJplfRfOexJ4VtAF8NIEFmcp+0/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lrRQIF01P1MIvLGtoyXZmRYA7rhlHTssufOhUn 6LI7ENJ8O/Jq2tjS9BVtPhDi6LZUA7E30vR0SUS03ZGmxcDXevGRT+vM/9lOwM89abd4/1F52 1ReKmI6xh+65yPTv7WkAjkK X-UI-Loop:V01:oeOiSiy+FS0=:6uMbjo3/dKWK5QY01uhBspz9PGDYbagec9UTnn8fEPk= X-UI-Out-Filterresults: notjunk:1;V01:K0:+rZINXpE8qw=:JBiulyGrsSV/TzboxplLD+ OywN25L7RXmNVeAtwZ24c6bAmQQjR5oj769mLRUprgjjyWd6A1ttsF31wHQmmeK6NBh9Abuix zMvRrmtxDqQGxpWMBuXJctJ11L5iMGz3nt3s1swmGsu59Nki4UXR2iSwXJETampbCh6m52i3v ZNuzQmwt8YmoUZ/jUPFolh3jl4fgJL8Fja4DQfcWJXt+MQfec5+xT6hpJSCiVGSV3Xo30Y8UL TBOReZCmlqsaWQQFerbeoERPEDed5U/pss6xWyE3YMcyXAECzy6MIkbbczZ9x5z9C/JjNK4ey YawCPL0G2RXs2nacY6A0DnxME3XPY6p7c5zEGM+i9T28pFicuTMiXu7EbY1u8WK5CIH7uHJIB LaMBfm0FJ77x1mMrXmI+YB7eqTd+3PX3+cavh+nolikTzkpsNWfpIyc35IqNXF2fpmdVoYAKB 3iRlEeOiqofXXjwRvEMWdJS6jTdmPYilrHaUcJqH2ZiqpYxrCNZcRLtVNkPnTlKgOpyTjAnCk soLa0sMeUJMeOtH7UW3go2WlFu4YyUcRKgrE4FOn6jr X-Scanned-By: MIMEDefang 2.71 on 85.214.41.38 Status: R X-Status: X-Keywords: X-UID: 7933 I stumbled on the following quirk recently: \tl_clear:N \l_tmpa_tl \fp_eval:n { round( \l_tmpa_tl, 4) } gives 4 as the answer (or whatever the rounding value is). Usually, in the situation where this arose, \l_tmpa_tl is a string of digits possibly including a decimal point. In this instance it was empty. Okay, I can check for that, but I wonder if l3fp should do so, and either give an error, as \fp_set:Nn \l_tmpa_fp { \l_tmpa_tl } does when the token list is empty, or give a conventional 0 as answer? Andrew --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus