https://codesandbox.io/s/magical-water-f7f84n?file=/src/index.js:0-164
importmillifyfrom"millify";constOneBelow1Mill=999999;constOneBelow100G=99999;console.log(millify(OneBelow1Mill));console.log(millify(OneBelow100G));
Output:
1M
100K
It should be:
999K
99K
Should it not? Why is it rounding up?
https://codesandbox.io/s/magical-water-f7f84n?file=/src/index.js:0-164
Output:
It should be:
Should it not? Why is it rounding up?