LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Classic View

Use Proportional 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: Fri, 2 Dec 2016 22:07:36 +1300
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 (21 lines)
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

ATOM RSS1 RSS2