Default to floor rounding mode

This commit is contained in:
Lim Chee Aun 2024-05-10 12:11:57 +08:00
parent 90f06c511a
commit 98b0ccf032

View file

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