oi W!!
here's one i wrote..it'll give ya somthing to start from:
cfscript
function convertKB(amt){
var units = KB;
if(amt LT 1024){
return amt units;
}else{
amt = round(amt/1024);
Is this a trick question??
MB = bytes/1,000,000
-Original Message-
From: W Luke [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 26, 2002 7:11 AM
To: CF-Talk
Subject: Bytes to MB/GB conversion tag?
Hi,
I have a database of about 35,000 files with their filenames, sizes, ID tags
and so
1 MB = 1024KB.
Neil Clark
Team Macromedia
http://www.macromedia.com/go/team
Announcing Macromedia MX!!
http://www.macromedia.com/software/trial/.
-Original Message-
From: Bryan Love [mailto:[EMAIL PROTECTED]]
Sent: 26 May 2002 21:05
To: CF-Talk
Subject: RE: Bytes to MB/GB
- Original Message -
From: Bryan Love [EMAIL PROTECTED]
MB = bytes/1,000,000
---
Isn't it MB = bytes/1,048,576 ? :-P
The original poster wanted a tag to do conversion anyway - I think the
ByteConvert UDF at www.cflib.org does nicely - converts bytes to KB, MB
or
Neil Clark - =TMM= wrote:
1 MB = 1024KB.
You're wrong :)
1 MB = 1000 kB = 100 B
1 Mi = 1024 Ki = 1048576 B
http://physics.nist.gov/cuu/Units/binary.html
Jochem
__
Get the mailserver that powers this list at
On Sun, 26 May 2002 13:04:57 -0700, in cf-talk you wrote:
Is this a trick question??
MB = bytes/1,000,000
Only on the packaging of Hard Drives. They *sneakily* use actual
standard SI units.
In all other instances a MegaByte is 2^20 or 1048576 bytes. A KiloByte
is, btw, 2^10 or 1024 bytes. A
: Bytes to MB/GB conversion tag?
On Sun, 26 May 2002 13:04:57 -0700, in cf-talk you wrote:
Is this a trick question??
MB = bytes/1,000,000
Only on the packaging of Hard Drives. They *sneakily* use actual
standard SI units.
In all other instances a MegaByte is 2^20 or 1048576 bytes. A KiloByte
Do you beep and chirp, Min?
;)
| -Original Message-
| From: Lewis Sellers [mailto:[EMAIL PROTECTED]]
| Sent: Sunday, May 26, 2002 2:28 PM
| To: CF-Talk
| Subject: Re: Bytes to MB/GB conversion tag?
|
|
| On Sun, 26 May 2002 13:04:57 -0700, in cf-talk you wrote
For efficiency and often ease you should remember that :
kb = bitshrn(b,10);
mb = bitshrn(b,20);
etc...
- CrystalM
- www.efflare.com
-- Sunday, May 26, 2002, 9:10:51 AM, you wrote:
Hi,
I have a database of about 35,000 files with their filenames, sizes, ID tags
and so on. The guy who
On Sun, 26 May 2002 15:06:40 -0700, in cf-talk you wrote:
Do you beep and chirp, Min?
;)
I couldn't afford a compiler as a child, so I had to program in
machine language and do all the hexidecimal math in my head.
It warped my little mind. /-)
--min
LOL
THANK YOU!!!
-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 26, 2002 1:51 PM
To: CF-Talk
Subject: Re: Bytes to MB/GB conversion tag?
Neil Clark - =TMM= wrote:
1 MB = 1024KB.
You're wrong :)
1 MB = 1000 kB = 100 B
1 Mi = 1024 Ki
11 matches
Mail list logo