summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md12
-rw-r--r--Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdfbin617746 -> 617930 bytes
-rw-r--r--Master/texmf-dist/doc/latex/siunitx/siunitx.pdfbin665420 -> 665420 bytes
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx-number.dtx13
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx.dtx2
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/siunitx.sty15
6 files changed, 33 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md b/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md
index 60d0b4c4600..127e8015f15 100644
--- a/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md
+++ b/Master/texmf-dist/doc/latex/siunitx/CHANGELOG.md
@@ -7,12 +7,17 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
## [Unreleased]
-## [v3.1.4] - 2022-06-22
+## [v3.1.5] - 2022-07-23
+
+### Fixed
+- Rounding to figures with a trailing zero and non-zero integer part (see issue
+ [\#615](https://github.com/josephwright/siunitx/issues/615))
+## [v3.1.4] - 2022-06-22
### Fixed
- Spacing of `\arcminute` and `\arcsecond` in quantities (see issue
- [\#6048(https://github.com/josephwright/siunitx/issues/608))
+ [\#608](https://github.com/josephwright/siunitx/issues/608))
## [v3.1.3] - 2022-06-07
@@ -1793,7 +1798,8 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
### Added
- First public testing release (as `si`)
-[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.1.4...HEAD
+[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.1.5...HEAD
+[v3.1.5]: https://github.com/josephwright/siunitx/compare/v3.1.4...v3.1.5
[v3.1.4]: https://github.com/josephwright/siunitx/compare/v3.1.3...v3.1.4
[v3.1.3]: https://github.com/josephwright/siunitx/compare/v3.1.2...v3.1.3
[v3.1.2]: https://github.com/josephwright/siunitx/compare/v3.1.1...v3.1.2
diff --git a/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf b/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf
index 533f78d1d25..91872b21dee 100644
--- a/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf
+++ b/Master/texmf-dist/doc/latex/siunitx/siunitx-code.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf b/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
index e6e98188c99..da03e0fdb85 100644
--- a/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
+++ b/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
Binary files differ
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
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
index 4217ff662f2..2766ca5ca3d 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
+++ b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
@@ -121,7 +121,7 @@
%
% Identify the package and give the over all version information.
% \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2022-06-22} {3.1.4}
+\ProvidesExplPackage {siunitx} {2022-07-23} {3.1.5}
{A comprehensive (SI) units package}
% \end{macrocode}
%
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