diff options
author | Norbert Preining <norbert@preining.info> | 2023-11-15 03:01:12 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-11-15 03:01:12 +0000 |
commit | f5460c92605f1b3b17448b27ce53375157c3e4b1 (patch) | |
tree | c02171bfdb42a95c39a65edd35f227ae61c8de72 /macros/latex/contrib/siunitx/siunitx-number.dtx | |
parent | e20928a0f9f4a7faa8bb21915e761e11e34f04ff (diff) |
CTAN sync 202311150301
Diffstat (limited to 'macros/latex/contrib/siunitx/siunitx-number.dtx')
-rw-r--r-- | macros/latex/contrib/siunitx/siunitx-number.dtx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/macros/latex/contrib/siunitx/siunitx-number.dtx b/macros/latex/contrib/siunitx/siunitx-number.dtx index 04b302cf51..6397e3239f 100644 --- a/macros/latex/contrib/siunitx/siunitx-number.dtx +++ b/macros/latex/contrib/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} |