1
0
Fork 0
mirror of https://github.com/archtechx/money.git synced 2025-12-12 11:24:03 +00:00
Commit graph

13 commits

Author SHA1 Message Date
lukinovec
8ce0b82ef0 Update immutability tests 2023-02-16 08:27:12 +01:00
lukinovec
3a7deadd19 Correct typehint 2023-02-15 17:42:52 +01:00
lukinovec
1fb607f352 Bring back immutability tests 2023-02-15 17:41:33 +01:00
lukinovec
2bf0c0ecc6 Delete immutability tests 2023-02-15 17:16:04 +01:00
David Andersson
269274586a
Fixes #11 - Remove trailing zeros from formatted price (#18)
* Remove trailing zeros from formatted price

* Add setting for how to handle trailing decimal zeros

* Write tests

* Fix code style

* Rewrite function description

* Change test name

* Add empty line at end of file

* rename deleteTrailingDecimalZeros to trimTrailingDecimalZeros

* Fix grammar

* Remove unnecessary parameter declarations

* fix test name

* fix comment grammar

* fix docblock grammar

Co-authored-by: Samuel Štancl <samuel@archte.ch>
2022-05-16 13:12:13 +02:00
Gaurav
2a60b7b3d8 test: updates 2022-03-15 17:06:44 +05:30
Gaurav
93aeb2c300 feat: extract currency from the formatted string 2022-03-10 11:39:53 +05:30
Gaurav
38c6326a4d feature: money instance creation from a formatted string 2022-03-09 12:50:04 +05:30
Gaurav
dce1269799 text: readme updates and code cleanup 2022-03-08 19:56:34 +05:30
Mikael Dalholm
356aad9cc6 Divide rate with 100
Needed for the calculation to be correct according to the documentation. `$money->addTax(20)` and not `$money->addTax(0.2)`
2021-12-28 11:45:02 +01:00
Samuel Štancl
c6ef5aa54c addDecimal() and subtractDecimal() 2021-11-28 18:47:59 +01:00
Samuel Štancl
f5bf658155 cents() method 2021-11-28 18:38:54 +01:00
Samuel Štancl
8847454577 Initial commit 2021-11-16 19:06:57 +01:00