Browse Source
Add optional roundDown parameter that uses Math.floor instead of Math.round when abbreviating numbers. This prevents values like 3993979 from rounding up to 4M, showing 3.9M instead. Also improve typing: replace any with ShortNumberArgs interface and ensure transform always returns string.pull/15396/head
committed by
Vladyslav Prykhodko
1 changed files with 14 additions and 8 deletions
Loading…
Reference in new issue