Skip to content

Commit 9b8bd30

Browse files
committed
Prepare for release
1 parent f67c7fe commit 9b8bd30

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [0.16.1](https://github.com/brick/math/releases/tag/0.16.1) - 2026-03-09
6+
7+
👌 **Improvements**
8+
9+
- Add `@return non-empty-string` to `toString()`, `jsonSerialize()` and `__toString()` (#111 by @vudaltsov)
10+
511
## [0.16.0](https://github.com/brick/math/releases/tag/0.16.0) - 2026-03-06
612

713
💥 **Breaking changes**

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ for a list of changes introduced by each further `0.x.0` version.
4747

4848
This library provides the following public classes in the `Brick\Math` namespace:
4949

50-
- [BigNumber](https://github.com/brick/math/blob/0.16.0/src/BigNumber.php): base class for `BigInteger`, `BigDecimal` and `BigRational`
51-
- [BigInteger](https://github.com/brick/math/blob/0.16.0/src/BigInteger.php): represents an arbitrary-precision integer number.
52-
- [BigDecimal](https://github.com/brick/math/blob/0.16.0/src/BigDecimal.php): represents an arbitrary-precision decimal number.
53-
- [BigRational](https://github.com/brick/math/blob/0.16.0/src/BigRational.php): represents an arbitrary-precision rational number (fraction), always reduced to lowest terms.
54-
- [RoundingMode](https://github.com/brick/math/blob/0.16.0/src/RoundingMode.php): enum representing all available rounding modes.
50+
- [BigNumber](https://github.com/brick/math/blob/0.16.1/src/BigNumber.php): base class for `BigInteger`, `BigDecimal` and `BigRational`
51+
- [BigInteger](https://github.com/brick/math/blob/0.16.1/src/BigInteger.php): represents an arbitrary-precision integer number.
52+
- [BigDecimal](https://github.com/brick/math/blob/0.16.1/src/BigDecimal.php): represents an arbitrary-precision decimal number.
53+
- [BigRational](https://github.com/brick/math/blob/0.16.1/src/BigRational.php): represents an arbitrary-precision rational number (fraction), always reduced to lowest terms.
54+
- [RoundingMode](https://github.com/brick/math/blob/0.16.1/src/RoundingMode.php): enum representing all available rounding modes.
5555

5656
And [exceptions](#exceptions) in the `Brick\Math\Exception` namespace.
5757

@@ -163,7 +163,7 @@ echo BigInteger::of(999)->dividedBy(3); // 333
163163
echo BigInteger::of(1000)->dividedBy(3); // RoundingNecessaryException
164164
```
165165

166-
You can pass an optional [rounding mode](https://github.com/brick/math/blob/0.16.0/src/RoundingMode.php) to round the result, if necessary:
166+
You can pass an optional [rounding mode](https://github.com/brick/math/blob/0.16.1/src/RoundingMode.php) to round the result, if necessary:
167167

168168
```php
169169
echo BigInteger::of(1000)->dividedBy(3, RoundingMode::Down); // 333
@@ -186,7 +186,7 @@ You can even get both at the same time:
186186
##### BigDecimal
187187

188188
Dividing a `BigDecimal` always requires a scale to be specified. If the exact result of the division does not fit in
189-
the given scale, a [rounding mode](https://github.com/brick/math/blob/0.16.0/src/RoundingMode.php) must be provided.
189+
the given scale, a [rounding mode](https://github.com/brick/math/blob/0.16.1/src/RoundingMode.php) must be provided.
190190

191191
```php
192192
echo BigDecimal::of(1)->dividedBy('8', 3); // 0.125

0 commit comments

Comments
 (0)