Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 399
Zeile 1... Zeile 1...
1
# Changelog
1
# Changelog
Zeile 2... Zeile 2...
2
 
2
 
Zeile -... Zeile 3...
-
 
3
All notable changes to this project will be documented in this file.
-
 
4
 
-
 
5
## [0.11.0](https://github.com/brick/math/releases/tag/0.11.0) - 2023-01-16
-
 
6
 
-
 
7
💥 **Breaking changes**
-
 
8
 
-
 
9
- Minimum PHP version is now 8.0
-
 
10
- Methods accepting a union of types are now strongly typed<sup>*</sup>
-
 
11
- `MathException` now extends `Exception` instead of `RuntimeException`
-
 
12
 
-
 
13
<sup>* You may now run into type errors if you were passing `Stringable` objects to `of()` or any of the methods
-
 
14
internally calling `of()`, with `strict_types` enabled. You can fix this by casting `Stringable` objects to `string`
3
All notable changes to this project will be documented in this file.
15
first.</sup>
Zeile 4... Zeile 16...
4
 
16
 
Zeile 5... Zeile 17...
5
## [0.10.2](https://github.com/brick/math/releases/tag/0.10.2) - 2022-08-11
17
## [0.10.2](https://github.com/brick/math/releases/tag/0.10.2) - 2022-08-11
Zeile 341... Zeile 353...
341
  - `getScale()` is renamed to `scale()`
353
  - `getScale()` is renamed to `scale()`
342
  - `getIntegral()` is renamed to `integral()`
354
  - `getIntegral()` is renamed to `integral()`
343
  - `getFraction()` is renamed to `fraction()`
355
  - `getFraction()` is renamed to `fraction()`
344
  - `divideAndRemainder()` is renamed to `quotientAndRemainder()`
356
  - `divideAndRemainder()` is renamed to `quotientAndRemainder()`
345
  - `dividedBy()` now takes a **mandatory** `$scale` parameter **before** the rounding mode
357
  - `dividedBy()` now takes a **mandatory** `$scale` parameter **before** the rounding mode
346
  - `toBigInteger()` does not accept a `$roundingMode` parameter any more
358
  - `toBigInteger()` does not accept a `$roundingMode` parameter anymore
347
  - `toBigRational()` does not simplify the fraction any more; explicitly add `->simplified()` to get the previous behaviour
359
  - `toBigRational()` does not simplify the fraction anymore; explicitly add `->simplified()` to get the previous behaviour
348
- `BigRational`:
360
- `BigRational`:
349
  - `getSign()` is renamed to `sign()`
361
  - `getSign()` is renamed to `sign()`
350
  - `getNumerator()` is renamed to  `numerator()`
362
  - `getNumerator()` is renamed to  `numerator()`
351
  - `getDenominator()` is renamed to  `denominator()`
363
  - `getDenominator()` is renamed to  `denominator()`
352
  - `of()` is renamed to `nd()`, while `parse()` is renamed to `of()`
364
  - `of()` is renamed to `nd()`, while `parse()` is renamed to `of()`
Zeile 416... Zeile 428...
416
 
428
 
Zeile 417... Zeile 429...
417
Added `BigDecimal::divideAndRemainder()`
429
Added `BigDecimal::divideAndRemainder()`
Zeile 418... Zeile 430...
418
 
430
 
419
## [0.2.0](https://github.com/brick/math/releases/tag/0.2.0) - 2015-05-22
431
## [0.2.0](https://github.com/brick/math/releases/tag/0.2.0) - 2015-05-22
420
 
432
 
Zeile 421... Zeile 433...
421
- `min()` and `max()` do not accept an `array` any more, but a variable number of parameters
433
- `min()` and `max()` do not accept an `array` anymore, but a variable number of parameters