Re: Bytes Question

new topic     » goto parent     » topic index » view thread      » older message » newer message

don cole wrote:
> 
> Hello All,
> 
> 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?
> 
> Don Cole

A Kbyte is defined as 1024 bytes while a MByte is 1024 * 1024 =1048576 bytes.
x[D_SIZE]/1024 would be correct. 

Larry Miller

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu