Brian, No - I think this is one of the limitations of using a loosely "typed" (or no typed <ha>) language. Obviously, if you were forced to declare each variable by type in advance this problem would not exist.
-mk -----Original Message----- From: Brian Thornton [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 5:04 PM To: CF-Talk Subject: RESOLVED: Re: 33 and 33d the same? Thanks guys. so the short answer is not to use MX with coding that compares strings becase it falls under the rules of Java whereas string comparisions are more than meets the eye. In the long term does anyone know if this is considered a bug or rather a longer term convention to keep in mind when coding? Thanks, Brian ----- Original Message ----- From: "Chad Gray" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, August 13, 2002 2:29 PM Subject: RE: 33 and 33d the same? > Ya.. float is another you can use. > > 33F would equal 33 also > > -----Original Message----- > From: Matthew R. Small [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 13, 2002 4:23 PM > To: CF-Talk > Subject: RE: 33 and 33d the same? > > I'd be willing to bet that you are right... I think in Java, 33d means > 33 in the decimal system, which is the same as 33. > > > Matthew Small > IT Supervisor > Showstopper National Dance Competitions > 3660 Old Kings Hwy > Murrells Inlet, SC 29576 > 843-357-1847 > > > -----Original Message----- > From: Chad Gray [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 13, 2002 5:21 PM > To: CF-Talk > Subject: RE: 33 and 33d the same? > > MX PRO > > 'The Same' > > Umm is this a Java variable suffix thing? If memory serves you can > scope a var at INT, DOUBLE, etc... I.E. 33D would be scoped as a > DOUBLE. > > > > -----Original Message----- > From: Bruce, Rodney S HQISEC/SIGNAL > [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 13, 2002 4:14 PM > To: CF-Talk > Subject: RE: 33 and 33d the same? > > tried on CF5/win2k > > got 'IDs are different' > > > On Tue, 13 Aug 2002, Brian Thornton wrote: > > > <cfset group_id = "33"> > > <cfset lot_id = "33D"> > > <cfif lot_id EQ group_id> > > The same > > <CFELSE> > > These ID's are different! > > </cfif> > > > > Output is "same" > > > > > > > > > > > > ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm 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

