Howie Hamlin wrote:
> You can do something like:
>
> <cfset num=260000000>
> <cfoutput>#numberformat(num /
> 10^(len(num)-1),"9.9")#e#evaluate(len(num)-1)#</cfoutput>
>
> Just bear in mind that this works for numbers >=1
Because of the Len() it only works for numbers that consist
only of digits (no decimal points, for example). You could
change Len(Num)-1 to Int(Log10(Num)) (in both places) to make
it work for more numbers.
Keith C. Ivey <[EMAIL PROTECTED]>
Webmaster, EEI Communications
66 Canal Center Plaza, Suite 200
Alexandria, VA 22314
Telephone: 703-683-0683
Fax: 703-683-4915
Web Site: http://www.eeicommunications.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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