The code posted above should work without modification for sizes up to 2147483647 bytes. As for larger sizes, it would be very simple to check for the size > 1000000000 bytes, add 1 to a flag called $GB, then subtract 1000000000 from the total. Let me see. I could also store the numbers in an array like and operate on them that way:

Total bytes = 53234356644
$Arraybytes = 4,4,6,6,5,3,4,3,2,3,5

Hmm. I suppose I could write functions to add numbers as an array (probably subtract, multiply, and divide as well). Would anyone be interested in this?

Brian