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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists