dustin/go-humanize

How to convert decimal to million or billion formats?

rilysh opened this issue · 1 comments

I want to convert decimal numbers like 1000 to 1k, 10000 to 10k, and 100000 to 100k and so on. But I'm a little confused, how to do it? Is there any function available or implemented yet about this theory?