summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/siunitx.sty15
1 files changed, 12 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
index 8cba881818c..e1f0215faa6 100644
--- a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
+++ b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
@@ -42,7 +42,7 @@
}%
\endinput
}%
-\ProvidesExplPackage {siunitx} {2022-06-22} {3.1.4}
+\ProvidesExplPackage {siunitx} {2022-07-23} {3.1.5}
{A comprehensive (SI) units package}
\msg_new:nnnn { siunitx } { incompatible-package }
{ Package~'#1'~incompatible. }
@@ -2985,8 +2985,17 @@
{
\int_compare:nNnTF {#3} = 0
{
- \__siunitx_number_round_final_decimal:nnw
- {#1} { 1 \__siunitx_number_round_truncate:n {#2} }
+ \bool_lazy_or:nnTF
+ { \tl_if_blank_p:n {#1} }
+ { \int_compare_p:nNn {#1} = { 0 } }
+ {
+ \__siunitx_number_round_final_decimal:nnw
+ {#1} { 1 \__siunitx_number_round_truncate:n {#2} }
+ }
+ {
+ \__siunitx_number_round_final_decimal:nnw
+ {#1} { 1 #2 }
+ }
}
{
\__siunitx_number_round_final:fn