0.1.0 • Published 9 months ago

@byndyusoft-ui/formatted-number v0.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

@byndyusoft-ui/formatted-number


Render your number with dividing digits and inserting thin space. You can use all power of Intl.NumberFormat() utility. For example, you can render numbers as money values. Or you can calculate maximum number of decimal places of your numbers' array by using getMaxFractionalPartOfNumbers() function and set fraction digits count of number by minimumFractionDigits option. Also, you can customize formatter and parseNumberToParts functions, and divider symbol between number's parts by numberPartsDividerClassName property.

Installation

npm i @byndyusoft-ui/formatted-number
# or
yarn add @byndyusoft-ui/formatted-number