diff options
author | Karl Berry <karl@freefriends.org> | 2012-04-23 23:35:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-04-23 23:35:34 +0000 |
commit | 06f92e7988867477e0e8ba1b2dea3752d90f7fbe (patch) | |
tree | 6cc2f8ec5dbfc078c9c5f37bfb15814c704b1793 /Master/texmf-dist/source/latex/l3kernel/l3fp.dtx | |
parent | 84c410717bd484db4ccea240224d83fbb42b464a (diff) |
l3kernel 3570 (23apr12)
git-svn-id: svn://tug.org/texlive/trunk@26111 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 | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3fp.dtx b/Master/texmf-dist/source/latex/l3kernel/l3fp.dtx index ea947680f43..64a6b39252f 100644 --- a/Master/texmf-dist/source/latex/l3kernel/l3fp.dtx +++ b/Master/texmf-dist/source/latex/l3kernel/l3fp.dtx @@ -35,7 +35,7 @@ % %<*driver|package> \RequirePackage{l3names} -\GetIdInfo$Id: l3fp.dtx 3315 2012-02-06 11:17:04Z bruno $ +\GetIdInfo$Id: l3fp.dtx 3490 2012-03-04 01:00:53Z bruno $ {L3 Experimental floating-point operations} %</driver|package> %<*driver> @@ -93,7 +93,7 @@ % % Operations which give an undefined result (such as division by % $0$) will not lead to errors. Instead special marker values are -% returned, which can be tested for using fr example +% returned, which can be tested for using for example % \cs{fp_if_undefined:N(TF)}. In this way it is possible to work with % asymptotic functions without first checking the input. If these % special values are carried forward in calculations they will be @@ -202,6 +202,15 @@ % terminal. % \end{function} % +% \begin{function}[EXP, pTF, added=2012-03-03]{\fp_if_exist:N, \fp_if_exist:c} +% \begin{syntax} +% \cs{fp_if_exist_p:N} \meta{fp~var} +% \cs{fp_if_exist:NTF} \meta{fp~var} \Arg{true code} \Arg{false code} +% \end{syntax} +% Tests whether the \meta{fp~var} is currently defined. This does not +% check that the \meta{fp~var} really is a floating point variable. +% \end{function} +% % \section{Conversion of floating point values to other formats} % % It is useful to be able to convert floating point variables to @@ -1209,9 +1218,9 @@ % Create a floating point if needed, otherwise clear it. % \begin{macrocode} \cs_new_protected:Npn \fp_zero_new:N #1 - { \cs_if_exist:NTF #1 { \fp_zero:N #1 } { \fp_new:N #1 } } + { \fp_if_exist:NTF #1 { \fp_zero:N #1 } { \fp_new:N #1 } } \cs_new_protected:Npn \fp_gzero_new:N #1 - { \cs_if_exist:NTF #1 { \fp_gzero:N #1 } { \fp_new:N #1 } } + { \fp_if_exist:NTF #1 { \fp_gzero:N #1 } { \fp_new:N #1 } } \cs_generate_variant:Nn \fp_zero_new:N { c } \cs_generate_variant:Nn \fp_gzero_new:N { c } % \end{macrocode} @@ -1482,6 +1491,20 @@ % \end{macro} % \end{macro} % +% \begin{macro}[pTF]{\fp_if_exist:N, \fp_if_exist:c} +% Copies of the \texttt{cs} functions defined in \pkg{l3basics}. +% \begin{macrocode} +\cs_new_eq:NN \fp_if_exist:NTF \cs_if_exist:NTF +\cs_new_eq:NN \fp_if_exist:NT \cs_if_exist:NT +\cs_new_eq:NN \fp_if_exist:NF \cs_if_exist:NF +\cs_new_eq:NN \fp_if_exist_p:N \cs_if_exist_p:N +\cs_new_eq:NN \fp_if_exist:cTF \cs_if_exist:cTF +\cs_new_eq:NN \fp_if_exist:cT \cs_if_exist:cT +\cs_new_eq:NN \fp_if_exist:cF \cs_if_exist:cF +\cs_new_eq:NN \fp_if_exist_p:c \cs_if_exist_p:c +% \end{macrocode} +% \end{macro} +% % \subsection{Transferring to other types} % % The \cs{fp_use:N} function converts a floating point variable to |