Page 1 of 1

How does XY calculate terabytes?

Posted: 26 May 2015 17:36
by zer0
As per picture below, XY seems to be more generous than Explorer (and also suggest that total drive capacity is higher than what Explorer thinks it is), hence the question: why?

Image

I have a sneaky suspicion that XY rounds things up, but haven't been able to find any documentary evidence to such.

Re: How does XY calculate terabytes?

Posted: 26 May 2015 18:15
by admin
Explorer is wrong. Of course.

Code: Select all

echo formatbytes("2892522504192", "TB", 14); 
How is it done?

Code: Select all

TB = bytes / 1099511627776

Re: How does XY calculate terabytes?

Posted: 26 May 2015 19:10
by bdeshi
to be completely independent of XYplorer:

Code: Select all

 b  = 2892522504192
 kb = b/1024
 mb = kb/1024
 gb = mb/1024
 tb = gb/1024
To be also completely independent of MS: https://www.google.com/search?q=2892522 ... +tebibytes