what about doing this:
cfset num = Left(numbervar,2) ".0mb"
or something similar... this would be a place to start...
--
Clint Tredway
www.factorxsoftware.com
--
~~
Structure your ColdFusion code with Fusebox. Get the official book at
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 100, then print it with the appropiete number of decimal
points (LSNumberFormat (number,"99.9") or something )
Or,
cfset num = Round(123456789/1000)/10 "MB"
Probably 100 ways to do this. I don't know which way is faster.
Brian
-Original Message-
From: Clint Tredway [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 10:41 AM
To: CF-Talk
Subject: Re: converting a numb
on there.. voila.
Jeremy Allen
elliptIQ Inc.
-Original Message-
From: Thomas Chiverton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 10:46 AM
To: CF-Talk
Subject: RE: converting a number to XXMB
I have a file upload application, and i store the size of the file
4 matches
Mail list logo