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

Update readme

This commit is contained in:
Mikael Dalholm 2021-12-30 14:44:07 +01:00
parent 35f6de2212
commit 77875dc359

View file

@ -88,6 +88,12 @@ $money = money(2200);
$money->convertTo(CZK::class); $money->convertTo(CZK::class);
``` ```
### Converting money and change rate
Sometimes you want to change the rate on the fly, just add the new rate as a second argument when converting.
```php
$money->convertTo(CZK::class, 1.0); // changes the CZK::class rate to 1.0
```
### Comparing money instances ### Comparing money instances
**Equality of monetary value** **Equality of monetary value**