Skip to content

Instantly share code, notes, and snippets.

@cslarsen
cslarsen / human-numbers.cpp
Created February 20, 2012 18:44
Convert big number to human readable format
/*
* A simple way to format numbers as human readable strings.
* E.g., 123456789 ==> 123 million
*
* Written by Christian Stigen Larsen
* http://csl.sublevel3.org
*
* Placed in the public domain by the author, 2012
*/