[latex3-commits] [git/LaTeX3-latex3-latex3] master: Document the fact that adding +0 converts -0 to +0 (f658559)
Bruno Le Floch
bruno at le-floch.fr
Thu Apr 19 01:55:17 CEST 2018
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/f6585598444f4e1e5a060c9ecde8ffd3f67d65cb
>---------------------------------------------------------------
commit f6585598444f4e1e5a060c9ecde8ffd3f67d65cb
Author: Bruno Le Floch <bruno at le-floch.fr>
Date: Wed Apr 18 19:55:17 2018 -0400
Document the fact that adding +0 converts -0 to +0
>---------------------------------------------------------------
f6585598444f4e1e5a060c9ecde8ffd3f67d65cb
l3kernel/l3fp.dtx | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/l3kernel/l3fp.dtx b/l3kernel/l3fp.dtx
index fa36cd0..3cf9821 100644
--- a/l3kernel/l3fp.dtx
+++ b/l3kernel/l3fp.dtx
@@ -129,9 +129,12 @@
% \LaTeX{} can now compute: $ \frac{\sin (3.5)}{2} + 2\cdot 10^{-3}
% = \ExplSyntaxOn \fp_to_decimal:n {sin(3.5)/2 + 2e-3} $.
% \end{verbatim}
-% But in all fairness, this module is mostly meant as an underlying tool
-% for higher-level commands. For example, one could provide a function
-% to typeset nicely the result of floating point computations.
+% The operation \texttt{round} can be used to limit the result's
+% precision. Adding $+0$ avoids the possibly undesirable output |-0|,
+% replacing it by |+0|. However, the \pkg{l3fp} module is mostly meant
+% as an underlying tool for higher-level commands. For example, one
+% could provide a function to typeset nicely the result of floating
+% point computations.
% \begin{verbatim}
% \documentclass{article}
% \usepackage{xparse, siunitx}
@@ -143,6 +146,8 @@
% \calcnum { 2 pi * sin ( 2.3 ^ 5 ) }
% \end{document}
% \end{verbatim}
+% See the documentation of \pkg{siunitx} for various options of
+% \cs{num}.
%
% \section{Creating and initialising floating point variables}
%
More information about the latex3-commits
mailing list