Click here to Skip to main content
15,881,027 members
Articles / Programming Languages / C#

A simple "human scale" number to string converter

Rate me:
Please Sign up or sign in to vote.
4.88/5 (5 votes)
25 May 2014CPOL 16.7K   9  
I needed to show file sizes in a "human friendly format" recently, so I thought I'd knock up a simple method to do it. So the file sizes such as 10123456789 bytes would display as 10.1Gb and so forth.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO
Wales Wales
Born at an early age, he grew older. At the same time, his hair grew longer, and was tied up behind his head.
Has problems spelling the word "the".
Invented the portable cat-flap.
Currently, has not died yet. Or has he?

Comments and Discussions