I think it is a little less clear then " 1" -> 0 but I haven't looked into
it much. The 2 most common places you will run into this right now is user
input that is not trimmed or using numberFormat() then doing comparisons
with that number. The positive is Adobe knows about it and has fixed
it...not sure if that fix is released, I have not hunted around the
technotes to see.

Adam

On Sat, Mar 15, 2008 at 8:46 AM, Gaulin, Mark <[EMAIL PROTECTED]>
wrote:

> Thanks, that's what I was hoping for.
>
> Ok, so the problem sounds like it is that automatic string-to-number
> conversions will not consider a string that starts with a space as a number.
> I guess that would make the numeric value of such a string equal to zero?
>
> So,  "1" -> 1, but " 1" -> 0?
>
>
>
>
> ________________________________
>
> From: Will Swain [mailto:[EMAIL PROTECTED]
> Sent: Sat 3/15/2008 7:47 AM
> To: CF-Talk
> Subject: RE: Any accumulated bug reports for cold fusion 8?
>
>
>
> They all match, FYI.
>
> -----Original Message-----
> From: Gaulin, Mark [mailto:[EMAIL PROTECTED]
> Sent: 14 March 2008 21:26
> To: CF-Talk
> Subject: RE: Any accumulated bug reports for cold fusion 8?
>
> For those of us without CF8 handy, and you saying that this is accurate:
>
> <cfset x = 10>
> <cfset y = 20>
>
> <cfif x eq "10">   this will NOT match?
>
> <cfif x eq 10>  this will match?
>
> <cfif y eq "20">   this will match?
>
> <cfif y eq 20>  this will NOT match?
>
> <cfif 10 eq "10">               how about this?
>
> Thanks
>        Mark
>
> -----Original Message-----
> From: Don L [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 14, 2008 5:10 PM
> To: CF-Talk
> Subject: Re: Any accumulated bug reports for cold fusion 8?
>
> Ha, that's an excellent sample, <cfset numberNumber10 = 10> One could
> easily
> code like that with the assumption that white space is ignored without
> causing problem.
>
> Thanks, Adam.
>
> Don
> P.S. I'll check my code
>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301366
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to