UNPKG

@byndyusoft-ui/formatted-number

Version:
18 lines (13 loc) 740 B
# `@byndyusoft-ui/formatted-number` --- > Render your number with dividing digits and inserting thin space.<br /><br /> > 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.<br/><br /> > Also, you can customize `formatter` and `parseNumberToParts` functions, and divider symbol between number's parts by `numberPartsDividerClassName` property. ## Installation ```sh npm i @byndyusoft-ui/formatted-number # or yarn add @byndyusoft-ui/formatted-number ```