Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() :( To calculate the size of a file, say, Tester.xls, we use: Format(FileLen("Tester.xls")*0.0009767,"0") & "KB" Can someone explain the use of the the factor* 0.0009767* (rather than the customary .001) in converting the bytes into Kilo Bytes? David -- davidm ------------------------------------------------------------------------ davidm's Profile: http://www.excelforum.com/member.php...o&userid=20645 View this thread: http://www.excelforum.com/showthread...hreadid=477045 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thanks Leith and Bob for the explanation. By the way, isn't it strang that a "kilo" for once doesn't denote 1,000? David -- david ----------------------------------------------------------------------- davidm's Profile: http://www.excelforum.com/member.php...fo&userid=2064 View this thread: http://www.excelforum.com/showthread.php?threadid=47704 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I think the program considers 2^10, or 1,024 to be a kilobyte. instead of
1,000. Therefore, the ratio 1 kb / 1024 , equals 0.0009765625. HTH. :) -- Dana DeLouis Win XP & Office 2003 "davidm" wrote in message ... :( To calculate the size of a file, say, Tester.xls, we use: Format(FileLen("Tester.xls")*0.0009767,"0") & "KB" Can someone explain the use of the the factor* 0.0009767* (rather than the customary .001) in converting the bytes into Kilo Bytes? David -- davidm ------------------------------------------------------------------------ davidm's Profile: http://www.excelforum.com/member.php...o&userid=20645 View this thread: http://www.excelforum.com/showthread...hreadid=477045 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Diana, So by logical extension, can I construct *I mega-byte* as: I mg = 1 million bytes (approx) = 1 Kb (Excel's) x 1,000 approx. = (2 ^10 )bytes x 1,000 approx =(2 ^10 )bytes x 2 ^10 = 2^20 bytes = 1,048,576 bytes ? Hence, to convert N bytes to Megabytes, the correspondin multiplication factor could be 1/1048576 = 9.5367 x 10^ -- david ----------------------------------------------------------------------- davidm's Profile: http://www.excelforum.com/member.php...fo&userid=2064 View this thread: http://www.excelforum.com/showthread.php?threadid=47704 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
File Size With Macros Has Increased From Its Origina Size | Excel Discussion (Misc queries) | |||
how to set sheet size to reduce file size | Excel Discussion (Misc queries) | |||
Unable to open excel file and when view the file size show as 1 KB | Excel Discussion (Misc queries) | |||
Determining the size of a range. | Excel Programming | |||
How to get the size of the excel file, a sheet size (in bytes)? | Excel Programming |