summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-11-14 21:05:03 +0000
committerKarl Berry <karl@freefriends.org>2023-11-14 21:05:03 +0000
commit0568107d401812ecbd0408df595b2706493fdc54 (patch)
tree575b3d176ce55f18f94c1e87239915004f3fe0db /Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx
parent03bde60a73411ae6f667d7478158874d411a29a6 (diff)
siunitx (14nov23)
git-svn-id: svn://tug.org/texlive/trunk@68844 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx')
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx14
1 files changed, 10 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx
index 04b302cf513..6397e3239f9 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx
+++ b/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx
@@ -2772,10 +2772,16 @@
}
\cs_new:Npn \@@_round:nnnnnnn #1#2#3#4#5#6#7
{
- \str_if_eq:nnTF {#4} { \empty }
- { \use:c { @@_round_ \l_@@_round_mode_tl :nnnnnnn } {#1} {#2} {#3} { } }
- { \use:c { @@_round_ \l_@@_round_mode_tl :nnnnnnn } {#1} {#2} {#3} {#4} }
- {#5} {#6} {#7}
+ \tl_if_blank:nTF { #3#4 }
+ {
+ \exp_not:n { {#1} {#2} { } { } {#5} {#6} {#7} }
+ }
+ {
+ \str_if_eq:nnTF {#4} { \empty }
+ { \use:c { @@_round_ \l_@@_round_mode_tl :nnnnnnn } {#1} {#2} {#3} { } }
+ { \use:c { @@_round_ \l_@@_round_mode_tl :nnnnnnn } {#1} {#2} {#3} {#4} }
+ {#5} {#6} {#7}
+ }
}
% \end{macrocode}
% \end{macro}