Re: Division in Cold Fusion?
The correct way is: You almost had it right - just had the slash turned around. Dave = "What we need is a list of specific unknown problems we will encounter" David Hannum Web Analyst/Programmer Ohio University [EMAIL PROTECTED] (740) 597-2524 - Original Message - From: "Peter Benoit" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 23, 2000 2:33 PM Subject: Division in Cold Fusion? I must be looking at all the wrong stuff... but I want to take 2 values and divide them. like: Is there a correct way to do this? Thanks, Pete -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: Division in Cold Fusion?
should work. -- Jamie Keane Programmer SolutionMasters, Inc. 9111 Monroe Rd., Suite 100 Charlotte, NC 28270 www.solutionmasters.com 704.563.5559 x 228 Voice 704.849.9291 Fax -Original Message- From: Peter Benoit <[EMAIL PROTECTED]> To: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]> Date: Wednesday, August 23, 2000 2:37 PM Subject: Division in Cold Fusion? >I must be looking at all the wrong stuff... but I want to take 2 values and >divide them. > >like: > > > >Is there a correct way to do this? > >Thanks, >Pete > >--- --- >Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ >To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Division in Cold Fusion?
Just like you did but you're using the wrong slash it should be. BTW you also don't need #'s in set's unless the variable name is in ""'s. HTH, --K -Original Message- From: Peter Benoit [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 23, 2000 11:33 AM To: '[EMAIL PROTECTED]' Subject: Division in Cold Fusion? I must be looking at all the wrong stuff... but I want to take 2 values and divide them. like: Is there a correct way to do this? Thanks, Pete -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: Division in Cold Fusion?
The backwards slash will divide and truncate the remainder, ie: it is an INTEGER divide. Use the normal / if you want to just divide. At 02:33 PM 8/23/00 -0400, Peter Benoit wrote: >I must be looking at all the wrong stuff... but I want to take 2 values and >divide them. > >like: > > > >Is there a correct way to do this? > >Thanks, >Pete > >-- >Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ >To Unsubscribe visit >http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a >message to [EMAIL PROTECTED] with 'unsubscribe' in the body. --- Peter Theobald, Chief Technology Officer LiquidStreaming http://www.liquidstreaming.com [EMAIL PROTECTED] Phone 1.212.545.1232 Fax 1.212.679.8032 -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Division in Cold Fusion?
Thanks for all the help with this one. One final question would be, is there a way to round the results of this to say 2 decimal places? It's hard to find what you're looking for when you don't know what you're looking for! :) Thanks again, Pete * -Original Message- * From: Chapman, Katrina [mailto:[EMAIL PROTECTED]] * Sent: Wednesday, August 23, 2000 2:50 PM * To: [EMAIL PROTECTED] * Subject: RE: Division in Cold Fusion? * * * Just like you did but you're using the wrong slash it should be. * * * * BTW you also don't need #'s in set's unless the variable * name is in ""'s. * * HTH, * --K * * -Original Message- * From: Peter Benoit [mailto:[EMAIL PROTECTED]] * Sent: Wednesday, August 23, 2000 11:33 AM * To: '[EMAIL PROTECTED]' * Subject: Division in Cold Fusion? * * * I must be looking at all the wrong stuff... but I want to * take 2 values and * divide them. * * like: * * * * Is there a correct way to do this? * * Thanks, * Pete * * - * --- * -- * Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ * To Unsubscribe visit * http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lis ts/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Division in Cold Fusion?
#DecimalFormat(variable)# this will automatically use two decimal places. search for it in the help if you want another format. Chris Olive, DOEHRS Website Administrator -Original Message- From: Peter Benoit [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 23, 2000 3:06 PM To: '[EMAIL PROTECTED]' Subject: RE: Division in Cold Fusion? Thanks for all the help with this one. One final question would be, is there a way to round the results of this to say 2 decimal places? It's hard to find what you're looking for when you don't know what you're looking for! :) Thanks again, Pete * -Original Message- * From: Chapman, Katrina [mailto:[EMAIL PROTECTED]] * Sent: Wednesday, August 23, 2000 2:50 PM * To: [EMAIL PROTECTED] * Subject: RE: Division in Cold Fusion? * * * Just like you did but you're using the wrong slash it should be. * * * * BTW you also don't need #'s in set's unless the variable * name is in ""'s. * * HTH, * --K * * -Original Message- * From: Peter Benoit [mailto:[EMAIL PROTECTED]] * Sent: Wednesday, August 23, 2000 11:33 AM * To: '[EMAIL PROTECTED]' * Subject: Division in Cold Fusion? * * * I must be looking at all the wrong stuff... but I want to * take 2 values and * divide them. * * like: * * * * Is there a correct way to do this? * * Thanks, * Pete * * - * --- * -- * Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ * To Unsubscribe visit * http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lis ts/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Division in Cold Fusion?
> I must be looking at all the wrong stuff... but I want to take 2 > values and divide them. > > like: > > > > Is there a correct way to do this? You have the wrong slash Philip Arnold ASP Multimedia Limited T: +44 (0)20 8680 1133 "Websites for the real world" ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: Division in Cold Fusion?
On 8/23/00, Peter Benoit penned: > Use a forward slash. Geesh, you Windows people. LOL Oh, you shouldn't use the pound signs inside a cfset either. Just don't put double or single quotes around them and CF will know they're variables. -- Bud Schneehagen - Tropical Web Creations _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ ColdFusion Solutions / eCommerce Development [EMAIL PROTECTED] http://www.twcreations.com/ 954.721.3452 -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Division in Cold Fusion?
Well the backslash I saw somewhere (no can't remember where) and it worked, just not the way I expected it to. * -Original Message- * From: Bud [mailto:[EMAIL PROTECTED]] * Sent: Wednesday, August 23, 2000 3:30 PM * To: [EMAIL PROTECTED] * Subject: Re: Division in Cold Fusion? * * * On 8/23/00, Peter Benoit penned: * > * * Use a forward slash. * * Geesh, you Windows people. LOL * * Oh, you shouldn't use the pound signs inside a cfset either. Just * don't put double or single quotes around them and CF will know * they're variables. * -- * * Bud Schneehagen - Tropical Web Creations * * _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ * ColdFusion Solutions / eCommerce Development * [EMAIL PROTECTED] * http://www.twcreations.com/ * 954.721.3452 * - * - * Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ * To Unsubscribe visit * http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lis ts/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: Division in Cold Fusion?
>I must be looking at all the wrong stuff... but I want to take 2 values and >divide them. Try: Rob Keniger -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Division in Cold Fusion?
I'm sure there's a nifty function that does exactly that for you - but without looking in the manual you could always do this: At 03:06 PM 8/23/00 -0400, Peter Benoit wrote: >Thanks for all the help with this one. One final question would be, is >there a way to round the results of this to say 2 decimal places? > >It's hard to find what you're looking for when you don't know what you're >looking for! :) > > >Thanks again, >Pete > >* -Original Message- >* From: Chapman, Katrina [mailto:[EMAIL PROTECTED]] >* Sent: Wednesday, August 23, 2000 2:50 PM >* To: [EMAIL PROTECTED] >* Subject: RE: Division in Cold Fusion? >* >* >* Just like you did but you're using the wrong slash it should be. >* >* >* >* BTW you also don't need #'s in set's unless the variable >* name is in ""'s. >* >* HTH, >* --K >* >* -Original Message- >* From: Peter Benoit [mailto:[EMAIL PROTECTED]] >* Sent: Wednesday, August 23, 2000 11:33 AM >* To: '[EMAIL PROTECTED]' >* Subject: Division in Cold Fusion? >* >* >* I must be looking at all the wrong stuff... but I want to >* take 2 values and >* divide them. >* >* like: >* >* >* >* Is there a correct way to do this? >* >* Thanks, >* Pete >* >* - >* --- >* -- >* Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ >* To Unsubscribe visit >* http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lis >ts/cf_talk or >send a message to [EMAIL PROTECTED] with 'unsubscribe' in >the body. > >-- >Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ >To Unsubscribe visit >http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or >send a message to [EMAIL PROTECTED] with 'unsubscribe' in >the body. > >-- >Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ >To Unsubscribe visit >http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a >message to [EMAIL PROTECTED] with 'unsubscribe' in the body. --- Peter Theobald, Chief Technology Officer LiquidStreaming http://www.liquidstreaming.com [EMAIL PROTECTED] Phone 1.212.545.1232 Fax 1.212.679.8032 -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.