[latex3-commits] [git/LaTeX3-latex3-latex3] master: Document that \fp_abs:n {inf} is an error contrarily to abs() [ci skip] (e1dff20ba)

Bruno Le Floch bruno at le-floch.fr
Sun Aug 25 13:14:56 CEST 2019


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/e1dff20bad3bef004230cff907cf3b5e854723e1

>---------------------------------------------------------------

commit e1dff20bad3bef004230cff907cf3b5e854723e1
Author: Bruno Le Floch <bruno at le-floch.fr>
Date:   Sun Aug 25 13:13:51 2019 +0200

    Document that \fp_abs:n {inf} is an error contrarily to abs() [ci skip]
    
    The reason is that \fp_abs:n expresses its result in decimal notation.


>---------------------------------------------------------------

e1dff20bad3bef004230cff907cf3b5e854723e1
 l3kernel/l3fp.dtx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/l3kernel/l3fp.dtx b/l3kernel/l3fp.dtx
index f89835405..2ded33aed 100644
--- a/l3kernel/l3fp.dtx
+++ b/l3kernel/l3fp.dtx
@@ -1370,9 +1370,10 @@
 %   \end{syntax}
 %   Evaluates the \meta{floating point expression} as described for
 %   \cs{fp_eval:n} and leaves the absolute value of the result in the
-%   input stream.  If the argument is a tuple, \enquote{invalid
-%   operation} occurs, but no other case raises exceptions.  Within
-%   floating point expressions, |abs()| can be used.
+%   input stream.  If the argument is $\pm\infty$, \nan{} or a tuple,
+%   \enquote{invalid operation} occurs.  Within floating point
+%   expressions, |abs()| can be used; it accepts $\pm\infty$ and \nan{}
+%   as arguments.
 % \end{function}
 %
 % \begin{function}[EXP, added = 2012-09-26, tested = m3fp-convert003]





More information about the latex3-commits mailing list