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
HTH,
Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc.
www.CoolFusion.com
631-737-4668 x101
inFusion Mail Server (iMS) - The Intelligent Mail Server
----- Original Message -----
From: "Corina Moore" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, May 15, 2001 1:03 PM
Subject: Scientific Notation Formatting
> Anyone have any ideas on how to format a number using scientific Notation?
> For example I have the number 260000000000 and I want to display 2.6e11
>
> I would appreciate any help.
>
> Thanx
> *********************************
> Corina S. Moore
> IMDC Software Developer
> 301-286-6124
> http://imdc.nasa.gov
> **********************************
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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