can you share with the rest of us who may be interested in your soliution?



-----Original Message-----
From: Declan Maher [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 9:42 AM
To: CF-Talk
Subject: RE: Rounding numbers in coldfusion


Figured it out.
Thanks anyway!!

-----Original Message-----
From: Declan Maher
Sent: 24 September 2002 14:40
To: CF-Talk
Subject: Rounding numbers in coldfusion


I am using a float datatype in the database and calculating some numbers
on the page.
The calculation seems to round up the numbers to the nearest integer,
even when I use
numberformat or decimal format. How can I prevent it doing this?

Example below

<cfif isdefined("P90") and P90 gt 0>
<cfif FindNoCase("gas","#Type#")>
<cfset P90x= #Evaluate(P90/6)#>
        <cfset totalP90=totalP90 + P90x>
<cfelse>
        <cfset totalP90=totalP90 + P90>
</cfif>
</cfif>


______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to