Default to floor rounding mode

pull/451/merge
Lim Chee Aun 2024-05-10 12:11:57 +08:00
rodzic 90f06c511a
commit 98b0ccf032
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -1,5 +1,6 @@
const { locale } = Intl.NumberFormat().resolvedOptions();
const shortenNumber = Intl.NumberFormat(locale, {
notation: 'compact',
roundingMode: 'floor',
}).format;
export default shortenNumber;