4
In various places on the internet it is possible to view formatting of numbers like "150k", "1kk". Most people know that 150k corresponds to 150,000 and 1kk corresponds to 1,000,000.
EXAMPLE:
This would be useful because sometimes I move with large numbers, which aesthetically is bad, because sometimes exceeds limits! With this type of formatting the number would always be summarized.
I would like this formatting to start from the first "1,000" which would soon be "1k", I would also like the number to always be rounded up and not down.
Examples of formatting:
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 would then like to know how to do this at the time of echo
.
The right thing wouldn’t be
1K
,1M
and1G
?– Renan Gomes
@Renan both ways would be useful, it is because I am more accustomed only to the same "k"!
– ivan veloso
1k = 1000 1000k = 1,000.00 No "kk".
– user53437