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 v325D4c6010203 for ; Sun, 2 Apr 2017 07:13:05 +0200 Received: from relay.uni-heidelberg.de ([129.206.100.212]) by mx-ha.gmx.net (mxgmx017 [212.227.15.9]) with ESMTPS (Nemesis) id 1N96Zx-1c1GPd3Lyp-016AtQ for ; Sun, 02 Apr 2017 07:12:59 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.15.2/8.15.2) with ESMTP id v325CrHQ005304; Sun, 2 Apr 2017 07:12:53 +0200 Received: from listserv (localhost [127.0.0.1]) by listserv.uni-heidelberg.de (Postfix) with ESMTP id 0F5E7120637; Sun, 2 Apr 2017 07:12:53 +0200 (CEST) Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 16110986 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sun, 2 Apr 2017 07:12:52 +0200 Delivered-To: LATEX-L@listserv.uni-heidelberg.de Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (Postfix) with ESMTP id AB510120560 for ; Sun, 2 Apr 2017 07:12:52 +0200 (CEST) Received: from smtp4.clear.net.nz (smtp4.clear.net.nz [203.97.37.64]) by relay.uni-heidelberg.de (8.15.2/8.15.2) with ESMTP id v325ChjD005233 for ; Sun, 2 Apr 2017 07:12:47 +0200 Received: from mxin1-orange.clear.net.nz (lb1-srcnat.clear.net.nz [203.97.32.236]) by smtp4.clear.net.nz (CLEAR Net Mail) with ESMTP id <0ONR007HRNR9G960@smtp4.clear.net.nz> for LATEX-L@listserv.uni-heidelberg.de; Sun, 02 Apr 2017 17:12:15 +1200 (NZST) Received: from 118-92-78-237.dsl.dyn.ihug.co.nz (HELO [127.0.0.1]) ([118.92.78.237]) by smtpin1.clear.net.nz with ESMTP; Sun, 02 Apr 2017 16:09:27 +1200 MIME-version: 1.0 Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit X-Antivirus: avast! (VPS 170401-0, 02/04/2017), 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: <58E07974.2090404@clear.net.nz> Date: Sun, 2 Apr 2017 16:09:24 +1200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Andrew Parsloe Subject: distinguishing -0 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:R1dW5TqzzKI=:lwY1saBFihGFYY1Ea75XdeAl2q G+c4N4ID+MSLzVTxTK8jTJQcPcLrqepySDTnNqY+UK3Qw3T6V1DriJNtaaMItrMzJLfiQgtxx sr3ZvY48koxbtugyP28oVh0St+LZjnYOLx3LPhmmRNBbzEKGbtziu4K2/iYs5M8jifuksTv6H vQ4bd8+3XYhndOf9azSHKuo6U6CITJljdR8ay33ORFyGVgl2Xn9oAn1fMvHap/yriLyMJUwqy /Fj5cdk5i/DfnhsiphIOg6qtTlpzTxJxMB/HDY6dfIzaVGLYwMQ6CatgFC5Ooh/1L6CO5qQpP vhHPGXInZ9Jxrg2pOm4Z1jVBXBuu9gnDA9GTf5WNCtf7Au8NVDGgUwnNupizg5PEcK0a3bvwd 46UrNco7qQUK9ytUz4SKFahfIr1yNvuT7jwdy0FV+uTzNcWprQWXCh96bM+lpoogVLWpUT6vG AdB6+pwCodWOAc/cFApmBkuHBexMYqspQKaQrWWzhRpBcp62pZXrcQkkuZc4Zq6HRqSix1Kxx iQf1t7pDtlNLi2rpElil4SaBj1UWDe6ptOCKVEnTdir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xcf8tJhf0b0+xlvoZAt02u0y38vHwlB7rcE= X-UI-Out-Filterresults: notjunk:1;V01:K0:bzWrhVtq6PQ=:GfjFA0zI58YTulCxxYFVgR L/y4R1LBQCf6sP8eAho3epVKwnK3fgnpOv5Qvtg3TAPz3jBQ+VwvLAK1gdFyUnn24G4cLH+Tg 9+Go6D+3YZcoLLKlXG6kx1+aIuZrdLIiPJoWwE+Aao+ybox+ZEX4+tTU4kLcHPBFuWv636QUF 0XpOfOUn236BJgxHd7dlVNGk6OUHGygfCLYQRQb4yC44NCatjzJYWIFu+8nexBLBSgKLpPAhc qr7MSyqnxMeyGS72Z3WsoUxR1B7bvU9UJI5Ja/ncvbfhn8yKyfbx3dCPUuIFH9a5DXo/h4SLG rcb8GP5yW1tf/TdDGDaCcvJT+/ogukh8e84eZ71Ok0fLzbcR0On6StvSeKh0TtMN57ay1Inwe NrWj6/zLZsjUo5OziFAakQ7/fcJvDxM6EAGWf+cLVj/82RBfAB2OdUut2njW3ixxZrpJCiLPj N+8Ku34ubQ== X-Scanned-By: MIMEDefang 2.71 on 85.214.41.38 Status: R X-Status: X-Keywords: X-UID: 7956 Is there a simple way to distinguish -0 from 0 in l3fp? I had been aligning left in a table a column of sines, +0 or -0 followed by decimal point & digits. By adding an \hphantom{-} before the positive numbers, they aligned nicely on the decimal point in the column, but then along came -0. The simple conditional, "if !(number < 0) add phantom", added the phantom and the column aligned like 0 0.5878 -0 -0.5878 etc. In the absence of formatted printing of numbers, -0 is a problem. Even a built-in test for -0 would ease matters, since in any kind of formatted printing of numbers 0 and -0 will generally require different handling. As it is, I've had to test each fp for whether it is zero; if it is I convert to a tl variable and test whether that is -0. This is clumsy. Hence my opening question. Andrew --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus