-7.02904401351E-012 IS really really really close to 0

it's -7.02 * 10^(-12)
so

0.000000000007029...
(I think I got the number of zeros right there)

the 'E' represents 'Exponent' - and is the symbol that is used to show that it is in 
Scientific 
Notiation.
http://www.math.com/school/subject1/lessons/S1U1L8DP.html

Does that make sense?

Mark
------------------------------------------------------------------
[EMAIL PROTECTED]
ICQ: 3094740
Safe From Bees
[ www.safefrombees.com ]


Quoting [EMAIL PROTECTED]:

> 
> While trying to track down a particularly elusive bug, I've come across
> something that I'm hoping is something stupid I'm doing.
> 
> Because if I'm right in what I'm seeing, ColdFusion can't count properly.
> 
> The situation: 
> 
> <cfset Result = (val(1stNumber) / val(2ndNumber)) + val(3rdNumber)>
> 
> 1stNumber = -5
> 2ndNumber = 0.3528
> 3rdNumber = 14.1723356009
> 
> ie: (-5 / 0.3528) + 14.1723356009 
> 
> The result *should* be 0, or as close as makes no differnce.
> 
> The result I'm getting?  -7.02904401351E-012
> 
> I've put up a page to test what I'm seeing, here:
> (http://devtest.formstar.com/test/a_calctest.cfm)
> I've put the code at the bottom of the output.
> 
> It's not until I trim the 3rdNumber down to 14.172 that I'm
> getting anything like a reasonable result.
> 
> I get the same results on both CFMX 6.0 and 6.1
> 
> Is it me? Is it CF? Is it an obscure setting I've overlooked?
> 
> 
> Paul Haddon
> Technical Services Manager
> Formstar Print Technologies
> 
> 
> 
> 
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> 
> MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
> http://www.mxdu.com/ + 24-25 February, 2004
> 
> 
> 

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to