Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
h4kuna committed Apr 3, 2024
1 parent 0169f18 commit 99c1dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/numbers.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ echo $format->modify(emptyValue: '-', zeroIsEmpty: true)->format(0); // -
echo $format->modify(unit: 'Kg')->format($number); // 1 234,46 Kg
echo $format->modify(unit: '%')->format($number); // 1 234,46 %
echo $format->modify(unit: '€')->format($number); // 1 234,46 €
echo $format->modify(unit: 'Kg')->format(0); // 0,00 Kg
```

##### showUnitIfEmpty
```php
echo $format->modify(unit: 'Kg')->format(0); // 0,00 Kg
echo $format->modify(unit: 'Kg', showUnitIfEmpty: false)->format(0); // 0,00
```

Expand Down

0 comments on commit 99c1dda

Please sign in to comment.