House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / ColdFusion Talk (CF-Talk)

grand total

Author:
Robert Orlini
07/11/2003 10:01 AM

All is OK. Thanks for the suggestions! Robert O. yeah, what he said....thats where I was going...just too early to get it 100% right without running it ;) tony weeg uncertified advanced cold fusion developer tony at navtrak dot net www.navtrak.net office 410.548.2337 fax 410.860.2337 <cfset grandtotal = 0> <cfloop from="1" to="#ArrayLen(session.cart)#" index="i">     <cfset grandtotal = grandtotal + (session.cart[i][2]*session.cart[i][3])> </cfloop> <cfoutput>#grandtotal#</cfoutput> Stephen > Hello, > > I'm still a newbie on CF so please bear with me. I had a co-worker > help me with some CF programming for a shopping cart. > > This code gives me the totalprice: <CFSET totalprice=decimalformat(session.cart[i][2]) * session.cart[i][3]>#dollarformat(totalprice)# > > How can I calculate a grand total adding up all the results of each > total price generated in the session? > > So far I have: <CFSET grandtotalprice=decimalformat(totalprice) + >????? #dollarformat(grandtotalprice# > > Any help appreciated. Thanks as always. > > Robert Orlini > HW Wilson > 718-588-8400 x2656 > ô¿ô > >


Search cf-talk

June 19, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
             1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30             

Designer, Developer and mobile workflow conference