diff options
author | Karl Berry <karl@freefriends.org> | 2013-03-12 22:38:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-03-12 22:38:22 +0000 |
commit | 574c4946ce553944c797750da25ba8844775996f (patch) | |
tree | 9ea4729ca09c49a4564d99d9134a5417eb7b2af3 /Master/texmf-dist/source/latex/l3kernel/l3fp.dtx | |
parent | 5c30ca128a813719715e012a0d72c1ccaba2d811 (diff) |
latex3 (12mar13)
git-svn-id: svn://tug.org/texlive/trunk@29361 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3fp.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/l3kernel/l3fp.dtx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3fp.dtx b/Master/texmf-dist/source/latex/l3kernel/l3fp.dtx index e531e62e54e..09efdfdd58f 100644 --- a/Master/texmf-dist/source/latex/l3kernel/l3fp.dtx +++ b/Master/texmf-dist/source/latex/l3kernel/l3fp.dtx @@ -36,7 +36,7 @@ % %<*driver|package> \RequirePackage{l3bootstrap} -\GetIdInfo$Id: l3fp.dtx 4305 2012-11-10 08:40:25Z joseph $ +\GetIdInfo$Id: l3fp.dtx 4449 2013-01-19 23:55:05Z bruno $ {L3 Floating points} %</driver|package> %<*driver> @@ -362,16 +362,18 @@ % case occurs exactly when one of the operands is \nan{}, and % this relations is denoted by the symbol |?|. The \texttt{nNn} % functions support the \meta{relations} |<|, |=|, |>|, and |?|. The -% \texttt{n} functions support as a \meta{relation} any combination of -% those four symbols, plus an optional leading |!| (which negates the +% \texttt{n} functions support as a \meta{relation} any non-empty string of +% those four symbols, plus optional leading |!| (which negate the % \meta{relation}), with the restriction that the \meta{relation} may % not start with |?|. Common choices of \meta{relation} include |>=| % (greater or equal), |!=| (not equal), |!?| (comparable). Note that % a \nan{} is distinct from any value, even another -% \nan{}, hence $x=x$ is not true for a \nan{}. Thus to -% test if a value is \nan{}, use +% \nan{}, hence $x=x$ is not true for a \nan{}. +% Since a \nan{} is not comparable to any floating point, to test if a +% value is \nan{}, one can use the following, where~$0$ is an +% arbitrary floating point. % \begin{verbatim} -% \fp_compare:nNnTF { <value> } != { <value> } +% \fp_compare:nNnTF { <value> } ? { 0 } % { } % <value> is nan % { } % <value> is not nan % \end{verbatim} |