Posted in
5324651
5:27 am, December 5, 2022
restyle and shorten number
Format a number 1k 1mil etc
Takes a number like 1000000 and converts it into 1mil. I also have a version of this that adds an abbr tag to the output in case you want to see the exact value.
1mil, 1k, 1bil, etc
Random Number 1 : 8002Random Number 2 : 527121Random Number 3 : 6469103add number
Result
The number 542539 converted is 542k+