0

Basically the same problem as 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

Community
  • 1
  • 1
Carsten
  • 4,204
  • 4
  • 32
  • 49
  • Do you want the algorithm in Java (like the linked question) or are you just after pseudocode? – Rich Aug 24 '11 at 06:38

1 Answers1

0

I fear I have found the answer: https://blogs.msdn.com/b/oldnewthing/archive/2011/03/15/10140985.aspx

Carsten
  • 4,204
  • 4
  • 32
  • 49