output to 2 decimal places
Hi there,
Got a small problem the output's are coming out like this 155.5 and i need them to come put like this 155.50
<cfparam name="FORM.twin" type="string" default="1" />
---------------------------
<cfquery name="twin" datasource="strand">
SELECT *
FROM hotel_rooms
WHERE hotel_rooms.ID = 1</cfquery>
---------------------------
<!---Twin CFIF--->
<cfif form.twin gt "0" and form.nights eq "1">
<cfset tprice = 1*#twin.price_night1#>
<cfelseif form.twin gt "0" and form.nights eq "2">
<cfset tprice1 = 2*#twin.price_night1#>
<cfset tprice = #tprice1#*0.95>
<cfelseif form.twin gt "0" and form.nights eq "3">
<cfset tprice1 = 3*#twin.price_night1#>
<cfset tprice = #tprice1#*0.90>
<cfelseif form.twin gt "0" and form.nights gte "4" and form.nights lt "8">
<cfset tprice1 = #form.nights#*#twin.price_night1#>
<cfset tprice = #tprice1#*0.85>
</cfif>
---------------------------
<cfoutput>#tprice#</cfoutput>
Any one any ideas.
Thanks
Jonathan Hemmings
