>> From: RADEMAKERS Tanguy [mailto:[EMAIL PROTECTED]
>
>How about using Val()
tried posting this via mail but no joy... here's hoping this works:
Hello Michael,
Val("NaN") and Val(mynumber) (where mynumber="NaN") both
return 0, as per spec. That would have worked for me, but only
because i never check against negative values. Unfortunately (wouldn't
you know it) i have a different piece of code which says:
<cfif (not(isNumeric(myField)) or (myField lt ListGetAt(rule,2,":")))>
Meanwhile, i've tried with CF5 (slightly different code as it
doesn't understand #("NaN" gt 5)#) and found that CF5 also thinks
"NaN" is a number, although at least it is consistent:
<cfif ("NaN" gt 5)>YES<cfelse>NO</cfif>
and
<cfif (myNumber gt 5)>YES<cfelse>NO</cfif>
both return NO (no conversion problems).
Is this a known issue with CF? Would anybody from MM care to comment?
/t
ps: if anyone needs me, i'll be ordering NaN products from CF powered sites ;)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207065
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54