oops!  Pardon my previous post.  I guess I should read the whole message
before replying...

dunno why 'd' is considered acceptible for scientific notation :)

                                                    
Bryan Love ACP
Internet Application Developer
[EMAIL PROTECTED]
                                                    


-----Original Message-----
From: Evan Lavidor [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 7:53 AM
To: CF-Talk
Subject: IsNumeric Weirdness


I asked this on CFDJList a couple of weeks ago when this list was down, and
though many tried to help out, I still just don't get it, so I wanted to see
if someone here could shed some light on the subject...

Here's the test code:

---------------------------------------------
<cfset myvariable = "3D1">
<cfoutput>
        <p>#IsNumeric('3D1')#</p>
        <p>#myvariable#</p>
        <p>#IsNumeric(myvariable)#</p>
</cfoutput>

This returns:
Yes
3D1
Yes

---------------------------------------------

WTF?!?  Shouldn't I be seeing No, 3D1, No?  Is it evaluating "3D1" as a
binary or octal value of some kind?  Why is it passing an IsNumeric test?
I'm running 4.5.1SP2.

Interestingly, 3A1, 3B1, 3C1, and 3F1 all fail, but 3E1 produces the same
result.

I understand in theory why 3E1 works, that's a form of scientific notation
(3x10^1 = 30), but 3D1?????

Thanks,

Evan

--
-=-=-=-=-=-=-=-=-=-
Evan Lavidor
Circle.com Boston
Tel: 617-585-3107
Fax: 617-585-3091
-=-=-=-=-=-=-=-=-=-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to