<p>How do I get a human-readable file size in bytes abbreviation using .NET?</p>

<p><strong>Example</strong>:
Take input 7,326,629 and display 6.98 MB</p>

```
```
int size = new FileInfo( filePath ).Length / 1024;
string humanKBSize = string.Format( "{0} KB", size );
string humanMBSize = string.Format( "{0} MB", size / 1024 );
string humanGBSize = string.Format( "{0} GB", size / 1024 / 1024 );
```
```