FYI - MATCH does a string comparison too. e.g.
VAL1 = 43008E-112
VAL2 = 43008E-108
IF (VAL1 MATCHES VAL2) THEN
CRT THIS IS STRANGE
END
does not print the message either.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit
.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Rex Gozar
Sent: Thursday, January 13, 2005 4:18 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] [UV]Strange But True
FYI - MATCH does a string comparison too. e.g.
VAL1 = 43008E-112
VAL2 = 43008E-108
Hi,
I will be out of the office on Friday, 1/14/04, and will return on
Tuesday 1/18/04. If a you need an immediate response to your e-mail
please e-mail [EMAIL PROTECTED] or you can call Frank at extension 467.
Thanks and have a great day!
Josh
Josh
---
u2-users mailing list
Uv Version: UniVerse 10.1
OS : Windows 2003 Server
Can anybody explain. I wrote a small program and the result has baffeled me.
Program:
VAL1 = 43008E-112
VAL2 = 43008E-108
IF (VAL1 = VAL2) THEN
CRT THIS IS STRANGE
END
It returns THIS IS STRANGE. Does
VAL1 = 43008E-112
VAL2 = 43008E-108
IF (VAL1 = VAL2) THEN
CRT THIS IS STRANGE
END
It returns THIS IS STRANGE. Does anybody know why?
Easy! UniVerse has a delightful feature called wide zero which says that
when you compare two floating point numbers, they will be treated as equal
]
To: u2-users@listserver.u2ug.org
Sent: Wednesday, January 12, 2005 7:08 PM
Subject: [U2] [UV]Strange But True
: Uv Version: UniVerse 10.1
: OS : Windows 2003 Server
:
: Can anybody explain. I wrote a small program and the result has baffeled
me.
:
: Program:
:
: VAL1 = 43008E-112
: VAL2 = 43008E
[EMAIL PROTECTED] wrote:
I don't know if it is intentional but the values you are comparing
are exponential.
So the comparison is of two incredibly small numbers. The
numbers are so small they are equal for all intents or purposes.
small is subjective. The earth is only rounding error as
[EMAIL PROTECTED] wrote:
I don't know if it is intentional but the values you are comparing
are exponential.
So the comparison is of two incredibly small numbers. The
numbers are so small they are equal for all intents or purposes.
Looks like the difference is less than your Wide
Just out of curiosity:
How do you arrive at numbers of the E-108 magnitude ?
After all, measuring the diameter of a quark (sth like E-18 m )
with the diameter of the entire (known) universe ( 3 * E+26 m )
as the unit, only gets us down to about E-44???
-- mats
---
u2-users
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Mats Carlid
Sent: Wednesday, January 12, 2005 12:38 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] [UV]Strange But True
Just out of curiosity:
How do you arrive at numbers of the E-108 magnitude
: 847-367-1892
[EMAIL PROTECTED]
www.valuepart.com
-Original Message-
From: Louis Windsor [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 12, 2005 6:20 AM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] [UV]Strange But True
I don't know if it is intentional but the values you
,
Marilyn A. Hilb
Value Part, Inc
Direct: 847-918-6099
Fax: 847-367-1892
[EMAIL PROTECTED]
www.valuepart.com
-Original Message-
From: Ian Renfrew [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 12, 2005 10:05 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] [UV]Strange But True
PROTECTED] On Behalf Of Matt Stern
Sent: Wednesday, January 12, 2005 10:38 AM
To: u2-users@listserver.u2ug.org
Subject:Re: [U2] [UV]Strange But True
But wait, it gets even weirder!
If you do the following, to make sure there's no chance of the two
strings acting as numeric:
VAL1 = 43008E
In a message dated 1/12/2005 8:45:48 AM Pacific Standard Time,
[EMAIL PROTECTED] writes:
VAL1 = 43008E-112:
and
VAL2 = 43008E-108:
the program still fails.
Hold on Matt :) This doesn't do what you think it does imho.
NOW if you use a blank instead of a null then it might work.
Will
: Re: [U2] [UV]Strange But True
:
: I don't know if it is intentional but the values you are comparing
: are exponential.
:
: So the comparison is of two incredibly small numbers. The
: numbers are so small they are equal for all intents or purposes.
:
: My 2c worth.
:
: Louis
You could concatenate a Z then, guaranteed to be interpreted as a string.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Louis Windsor
Sent: Wednesday, January 12, 2005 16:13
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] [UV]Strange But True
-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Behr
Sent: 12 January 2005 01:08
To: u2-users@listserver.u2ug.org
Subject: [U2] [UV]Strange But True
Uv Version: UniVerse 10.1
OS : Windows 2003 Server
Can anybody explain. I wrote a small program and the result has baffeled me
17 matches
Mail list logo