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>

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to