On Thursday, March 28, 2002, at 01:27 PM, Ben Rubinstein wrote:

> Obviously what's happening here is the that the two strings are 
> capable of
> being interpreted as numbers in scientific notation; and in that
> interpretation they are very large numbers; and I guess that Rev/MC is
> taking the approach that anything which can be treated as a number 
> should
> be; and further, that when comparing two extremely large numbers, 
> it can't
> be sure if they're the same number.... so it returns false.

Well, to old guys like me, 9E707 is programming language jargon, 
not scientific notation, but I know what you mean.

string               is a number
-------------       ----------------
9E707                 true
1.4 * 10^3            false
10,000                false
1.000                 true
IX                    false
2222222222222         true
    10                 true
$101.50               false
++0                   true

expression                    =       expression              -->
-------------                      ---------------     ---------------
"9E707"                             "9E707"              false
.2 + .2 + .2 + .2 + .2              10                   false
1.00000000000001 + 0                1                    false
1.000000000000001 + 0               1                    true
1.000000000000005 + 0               1                    false
"-0"                                "+0"                 true


put .000000000001 & "X" --> .00000000001X
put 1.000000000001 & "X" --> 1.00000000001X
put 2^(1/2) & "X" --> 1.414214X
put 100000000000000000000001 + 0 --> 99999999999999991611392

Dar Scott










_______________________________________________
improve-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/improve-revolution

Reply via email to