To my modest opinion, if you like to obtain the 'real' amount in MB of your
files, you need to divide by 1048576 (1024*1024) and by 1024 in case you
need the KB amount... The remaining part of the process is the same.
Is that correct?
Andrea
-----Messaggio Originale-----
Da: Thomas Chiverton <[EMAIL PROTECTED]>
A: CF-Talk <[EMAIL PROTECTED]>
Data invio: marted� 6 febbraio 2001 16:46
Oggetto: RE: converting a number to XXMB
> > I have a file upload application, and i store the size of the file into
a
> > database. The number is something like this: 12034806
> > How can i convert this number to 12.0MB?
>
> Divide by 1000000, then print it with the appropiete number of decimal
> points (LSNumberFormat (number,"99.9") or something )
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists