cashflowy / switchless

component library using mui/joy
2 stars 0 forks source link

hide insignificant digits #22

Open alexjv89 opened 1 month ago

alexjv89 commented 1 month ago

hide insignificant digits

1000 -> 1 k 1234 -> 1.23 k 100000 -> 1 lakh 140000 -> 1.4 lakhs 141231 -> 1.41 lakhs 10000000 -> 1 crore 11234141 -> 1.12 crores 1000000000 -> 100 crores 100000000000 -> 1000 crores

the same thing in US style 1000 -> 1 k 1234 -> 1.23 k 100000 -> 100 k 140000 -> 140 k 141231 -> 141.23 k 1412312 -> 1.41 million 10000000 -> 10 million 11234141 -> 11.23 million 112341411 -> 112.34 million 1000000000 -> 1 billion 1123414113 -> 1.12 billion 100000000000 -> 100 billion