LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Will Robertson <[log in to unmask]>
Tue, 27 May 2014 08:24:07 +0930
text/plain (12 lines)
On 27 May 2014, at 3:11 am, Bruno Le Floch <[log in to unmask]> wrote:

> Short answer: use the trigonometric functions which expect arguments
> in degrees: sind, cosd, tand,...  sind(180) correctly gives -0.

I came across this the other day and had been going to ask — while I am certainly okay with receiving this result in a computational sense, I wonder about the typesetting; should/can we provide an easy way to typeset negative zero just as zero?

When I was trying it out, I thought perhaps that \fp_eval:n would return negative zero but \fp_to_decimal:n would “normalise” it; is that a crazy idea?