mirror of
https://github.com/archtechx/money.git
synced 2025-12-12 03:14:03 +00:00
* 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>
This commit is contained in:
parent
545610efb0
commit
269274586a
5 changed files with 52 additions and 1 deletions
|
|
@ -28,6 +28,7 @@ test('currencies can be serialized to JSON', function () {
|
|||
'rounding' => 2,
|
||||
'decimalSeparator' => ',',
|
||||
'thousandsSeparator' => '.',
|
||||
'trimTrailingDecimalZeros' => false,
|
||||
]);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue