diff options
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} |