diff options
author | Karl Berry <karl@freefriends.org> | 2022-07-23 21:39:20 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-07-23 21:39:20 +0000 |
commit | 0f5c838f2f213420085e0e591ed6640230476df2 (patch) | |
tree | 567d8a65fc9d36a20434216cb3b0afe40530d776 /Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx | |
parent | 364a1604cd3394a3e431ccc118b46238eca34121 (diff) |
siunitx (23jul22)
git-svn-id: svn://tug.org/texlive/trunk@63964 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.dtx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx index 2f153d46864..ff97058d20f 100644 --- a/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx +++ b/Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx @@ -2660,8 +2660,17 @@ { \int_compare:nNnTF {#3} = 0 { - \@@_round_final_decimal:nnw - {#1} { 1 \@@_round_truncate:n {#2} } + \bool_lazy_or:nnTF + { \tl_if_blank_p:n {#1} } + { \int_compare_p:nNn {#1} = { 0 } } + { + \@@_round_final_decimal:nnw + {#1} { 1 \@@_round_truncate:n {#2} } + } + { + \@@_round_final_decimal:nnw + {#1} { 1 #2 } + } } { \@@_round_final:fn |