diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3fp-assign.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/l3kernel/l3fp-assign.dtx | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3fp-assign.dtx b/Master/texmf-dist/source/latex/l3kernel/l3fp-assign.dtx index 30d9cc9ad57..d4f03e55f2c 100644 --- a/Master/texmf-dist/source/latex/l3kernel/l3fp-assign.dtx +++ b/Master/texmf-dist/source/latex/l3kernel/l3fp-assign.dtx @@ -40,7 +40,7 @@ % {latex-team@latex-project.org}^^A % }^^A % } -% \date{Released 2021-02-18} +% \date{Released 2021-05-07} % \maketitle % % \begin{documentation} @@ -165,6 +165,7 @@ % \subsection{Showing values} % % \begin{macro}{\fp_show:N, \fp_show:c, \fp_log:N, \fp_log:c, \@@_show:NN} +% \begin{macro}[EXP]{\@@_show_validate:w} % This shows the result of computing its argument by % passing the right data to \cs{tl_show:n} or \cs{tl_log:n}. % \begin{macrocode} @@ -174,11 +175,26 @@ \cs_generate_variant:Nn \fp_log:N { c } \cs_new_protected:Npn \@@_show:NN #1#2 { - \__kernel_chk_defined:NT #2 + \__kernel_chk_tl_type:NnnT #2 { fp } + { + \str_if_eq:eeTF { \tl_head:N #2 } { \s_@@_tuple } { \exp_not:o #2 } + { + \exp_after:wN \@@_show_validate:w #2 + \s_@@ \@@_chk:w ??? ; \s_@@_stop + } + } { \exp_args:Nx #1 { \token_to_str:N #2 = \fp_to_tl:N #2 } } } +\cs_new:Npn \@@_show_validate:w + #1 \s_@@ \@@_chk:w #2#3#4#5 ; #6 \s_@@_stop + { + \token_if_eq_meaning:NNTF #2 1 + { \s_@@ \@@_chk:w #2 #3 {#4} #5 ; } + { \s_@@ \@@_chk:w #2 #3 #4 #5 ; } + } % \end{macrocode} % \end{macro} +% \end{macro} % % \begin{macro}{\fp_show:n, \fp_log:n} % Use general tools. |