1
0
Fork 0
mirror of https://github.com/cheeaun/phanpy.git synced 2025-04-24 08:01:59 +02:00

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;