In several places on the internet you can view number formatting such as "150k", "1kk". Most people know that 150k is 150,000 and 1kk is 1,000,000.
EXAMPLE:
ThatwouldbeusefulbecausesometimesImovewithbignumbers,whichaestheticallyisbad,becausesometimesitgoesbeyondlimits!Withthiskindofformattingthenumberwouldalwaysbesummarized.
Iwouldlikethisformattingtostartfromthefirst"1,000" which would soon be "1k", I would also like the number to always be rounded up and not down.
Formatting examples:
10 = 10
100 = 100
999 = 999
1.000 = 1k
1.499 = 1k
1.501 = 2k
10.000 = 10k
100.000 = 100k
1.000.000 = 1kk
10.000.000 = 10kk
100.000.000 = 100kk
1.000.000.000 = 10kkk
I'd like to know how to do this at the time of echo
.