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

Code: Select all
echo formatbytes("2892522504192", "TB", 14); Code: Select all
TB = bytes / 1099511627776Code: Select all
b = 2892522504192
kb = b/1024
mb = kb/1024
gb = mb/1024
tb = gb/1024