Format file size as MB, GB etc the Microsoft way
Basically the same problem 开发者_如何学Goas Format file size as MB, GB etc: Format the size of a file in a human readable way. The twist: I need it to be the same algorithm that MS windows uses in its file explorer (or else my users get confused). What algorithm does MS use?
Note: It's not the one from the answers to the referenced question
I fear I have found the answer: https://blogs.msdn.com/b/oldnewthing/archive/2011/03/15/10140985.aspx
精彩评论