Re: Bytes Question
- Posted by "Greg Haberek" <ghaberek at gmail.com> Jul 05, 2006
- 586 views
> x=dir(myfile) > x[D_SIZE] would be the file size in bytes. > So would file size in Kbytes would be x[D_SIZE]/1000 > or x[D_SIZE]/1024 ? What about Mbtyes? KiloByte: 1024 Bytes MegaByte: 1024 KiloBytes (1,048,576 Bytes) GigaByte: 1024 MegaBytes (1,073,741,824 Bytes) TeraByte: 1024 GigaBytes (1,099,511,627,776 Bytes) For each step (KB, MB, GB, TB) divide by 1024. ~Greg