mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Default to floor rounding mode
This commit is contained in:
parent
90f06c511a
commit
98b0ccf032
1 changed files with 1 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
const { locale } = Intl.NumberFormat().resolvedOptions();
|
const { locale } = Intl.NumberFormat().resolvedOptions();
|
||||||
const shortenNumber = Intl.NumberFormat(locale, {
|
const shortenNumber = Intl.NumberFormat(locale, {
|
||||||
notation: 'compact',
|
notation: 'compact',
|
||||||
|
roundingMode: 'floor',
|
||||||
}).format;
|
}).format;
|
||||||
export default shortenNumber;
|
export default shortenNumber;
|
||||||
|
|
Loading…
Reference in a new issue