-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(uiMoneyMask): format and parse integer models
* New attr ui-integer-model: convert from and to integer model It's quite common to store money values as integers: storing money as decimal will likely lead to rounding errors. It esentially will divide model value by the number of decimals when formatting it and perform the equivalent multiplication when parsing it. * Add a couple of tests
- Loading branch information
1 parent
548e2c5
commit 6609f19
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters