mirror of
https://github.com/archtechx/money.git
synced 2025-12-12 03:14:03 +00:00
Update readme
This commit is contained in:
parent
35f6de2212
commit
77875dc359
1 changed files with 6 additions and 0 deletions
|
|
@ -88,6 +88,12 @@ $money = money(2200);
|
|||
$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
|
||||
|
||||
**Equality of monetary value**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue