Skip to content

Commit 1e9671c

Browse files
authored
Note about (monetary) alternatives
1 parent 752ac99 commit 1e9671c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ var_dump(0.1 + 0.2 - 0.3); // float(5.5511151231258E-17)
2020
Handling them as string is a workaround, but as value object you can more easily encapsulate some of the logic.
2121

2222
### Alternatives
23-
Solutions like https://php-decimal.io require a PHP extension (would make it faster, but also more difficult for some
23+
Solutions like [php-decimal](https://php-decimal.github.io/#introduction) require a PHP extension (would make it faster, but also more difficult for some
2424
servers to be available). For details see the [wiki](https://github.com/php-collective/decimal-object/wiki).
2525

26+
For monetary values itself one could look into [brick/money](https://github.com/brick/money) or [moneyphp/money](https://github.com/moneyphp/money).
27+
2628
Note: If you are looking for pre 8.1 versions, check out legacy library (https://github.com/spryker/decimal-object).
2729

2830
## Features

0 commit comments

Comments
 (0)