LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Date: Sun, 2 Apr 2017 16:09:24 +1200
MIME-version: 1.0
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
Content-type: text/plain; charset=utf-8; format=flowed
From: Andrew Parsloe <[log in to unmask]>
Message-ID: <[log in to unmask]>
Content-transfer-encoding: 7bit
Parts/Attachments: text/plain (26 lines)
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
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.


This email has been checked for viruses by Avast antivirus software.