Skip to content

Commit efe64d2

Browse files
committed
Prepare for release
1 parent 1ec40f4 commit efe64d2

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

5-
## UNRELEASED (0.13.0)
5+
## [0.13.0](https://github.com/brick/math/releases/tag/0.13.0) - 2025-03-03
66

77
💥 **Breaking changes**
88

README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ existing code, etc.), `y` is incremented.
3838

3939
**When a breaking change is introduced, a new `0.x` version cycle is always started.**
4040

41-
It is therefore safe to lock your project to a given release cycle, such as `^0.12`.
41+
It is therefore safe to lock your project to a given release cycle, such as `^0.13`.
4242

4343
If you need to upgrade to a newer release cycle, check the [release history](https://github.com/brick/math/releases)
4444
for a list of changes introduced by each further `0.x.0` version.
@@ -47,20 +47,20 @@ 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.12.0/src/BigNumber.php): base class for `BigInteger`, `BigDecimal` and `BigRational`
51-
- [BigInteger](https://github.com/brick/math/blob/0.12.0/src/BigInteger.php): represents an arbitrary-precision integer number.
52-
- [BigDecimal](https://github.com/brick/math/blob/0.12.0/src/BigDecimal.php): represents an arbitrary-precision decimal number.
53-
- [BigRational](https://github.com/brick/math/blob/0.12.0/src/BigRational.php): represents an arbitrary-precision rational number (fraction).
54-
- [RoundingMode](https://github.com/brick/math/blob/0.12.0/src/RoundingMode.php): enum representing all available rounding modes.
50+
- [BigNumber](https://github.com/brick/math/blob/0.13.0/src/BigNumber.php): base class for `BigInteger`, `BigDecimal` and `BigRational`
51+
- [BigInteger](https://github.com/brick/math/blob/0.13.0/src/BigInteger.php): represents an arbitrary-precision integer number.
52+
- [BigDecimal](https://github.com/brick/math/blob/0.13.0/src/BigDecimal.php): represents an arbitrary-precision decimal number.
53+
- [BigRational](https://github.com/brick/math/blob/0.13.0/src/BigRational.php): represents an arbitrary-precision rational number (fraction).
54+
- [RoundingMode](https://github.com/brick/math/blob/0.13.0/src/RoundingMode.php): enum representing all available rounding modes.
5555

5656
And the following exceptions in the `Brick\Math\Exception` namespace:
5757

58-
- [MathException](https://github.com/brick/math/blob/0.12.0/src/Exception/MathException.php): base class for all exceptions
59-
- [DivisionByZeroException](https://github.com/brick/math/blob/0.12.0/src/Exception/DivisionByZeroException.php): thrown when a division by zero occurs
60-
- [IntegerOverflowException](https://github.com/brick/math/blob/0.12.0/src/Exception/IntegerOverflowException.php): thrown when attempting to convert a too large `BigInteger` to `int`
61-
- [NumberFormatException](https://github.com/brick/math/blob/0.12.0/src/Exception/NumberFormatException.php): thrown when parsing a number string in an invalid format
62-
- [RoundingNecessaryException](https://github.com/brick/math/blob/0.12.0/src/Exception/RoundingNecessaryException.php): thrown when the result of the operation cannot be represented without explicit rounding
63-
- [NegativeNumberException](https://github.com/brick/math/blob/0.12.0/src/Exception/NegativeNumberException.php): thrown when attempting to calculate the square root of a negative number
58+
- [MathException](https://github.com/brick/math/blob/0.13.0/src/Exception/MathException.php): base class for all exceptions
59+
- [DivisionByZeroException](https://github.com/brick/math/blob/0.13.0/src/Exception/DivisionByZeroException.php): thrown when a division by zero occurs
60+
- [IntegerOverflowException](https://github.com/brick/math/blob/0.13.0/src/Exception/IntegerOverflowException.php): thrown when attempting to convert a too large `BigInteger` to `int`
61+
- [NumberFormatException](https://github.com/brick/math/blob/0.13.0/src/Exception/NumberFormatException.php): thrown when parsing a number string in an invalid format
62+
- [RoundingNecessaryException](https://github.com/brick/math/blob/0.13.0/src/Exception/RoundingNecessaryException.php): thrown when the result of the operation cannot be represented without explicit rounding
63+
- [NegativeNumberException](https://github.com/brick/math/blob/0.13.0/src/Exception/NegativeNumberException.php): thrown when attempting to calculate the square root of a negative number
6464

6565
### Overview
6666

@@ -174,7 +174,7 @@ echo BigInteger::of(999)->dividedBy(3); // 333
174174
echo BigInteger::of(1000)->dividedBy(3); // RoundingNecessaryException
175175
```
176176

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

179179
```php
180180
echo BigInteger::of(1000)->dividedBy(3, RoundingMode::DOWN); // 333
@@ -197,7 +197,7 @@ You can even get both at the same time:
197197
##### BigDecimal
198198

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

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

0 commit comments

Comments
 (0)