LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Proportional Font
Show HTML 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: Sat, 13 May 2017 11:32:49 -0400
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
Message-ID: <[log in to unmask]>
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
In-Reply-To: <[log in to unmask]>
Content-Type: text/plain; charset=utf-8
From: Bruno Le Floch <[log in to unmask]>
Parts/Attachments: text/plain (20 lines)
On 05/06/2017 06:00 PM, Andrew Parsloe wrote:
> I have finally got to grips with l3fp's exception handling. (The main
> difficulty was realising that an exception like division_by_zero is a
> different creature from the flag fp_division_by_zero.) However, I was
> surprised to find that \fp_eval:n { ln(1) } raises the underflow flag:
> \flag_height:n { fp_underflow } displays 1.
> Andrew

Thanks for reporting.  This is a bug.  Somewhat known to me at least at
some point since I wrote in the source the following comment

%^^A todo: ln(1) should be "exact zero", not "underflow"

I need to revisit l3fp soonish, but sadly a realistic estimate of when
that'll be fixed is 1 year.  I've opened issue #364