Concatenating a null to the numbers doesn't achieve anything they are 
unchanged and remain floating point numbers.

Louis


----- Original Message ----- 
From: "Matt Stern" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, January 13, 2005 12:38 AM
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-112": ""
: and
: VAL2 = "43008E-108":""
:
: the program still fails.  When you REALLY make sure you're doing a string 
compare with
:
: IF (VAL1:"" = VAL2:"") THEN
:
: it STILL FAILS!
:
: Oh well, I guess U2 has a mind of its own with regard to string compare. 
Note that the string compare works OK on most generic Pick platforms.
:
: Matthew H. Stern, CCP/CDP, [EMAIL PROTECTED]
: Serving the IT industry since 1976
: Comprehensive Computer Services Inc.
: www.comprehensive.com
: Phone: 631 755-2250, Fax 755-2254
: 560 Broad Hollow Road, Melville NY 11747
:
:
:
: Marilyn Hilb wrote:
:
: >I had this same problem with our bin locations that contained an E. I 
ended up swapping E for X before doing the compare to get the results I 
wanted.
: >
: >Thanks,
: >
: >Marilyn A. Hilb
: >Value Part, Inc
: >Direct: 847-918-6099
: >Fax: 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: [email protected]
: >Subject: 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
: >
: >
: >----- Original Message ----- 
: >From: "Bjorn Behr" <[EMAIL PROTECTED]>
: >To: <[email protected]>
: >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-108"
: >: IF (VAL1 = VAL2) THEN
: >:    CRT "THIS IS STRANGE"
: >: END
: >:
: >: It returns THIS IS STRANGE. Does anybody know why?
: >: 
________________________________________________________________________
: >: Regards
: >: Bjvrn Behr
: >: Programmer
: >:
: >: HYFLO Southern Africa (Pty) Ltd
: >: Tel : +27 11 386 5800
: >: Fax : +27 11 444 5391
: >: Mail: [EMAIL PROTECTED]
: >: WWW : http://www.hyflo.co.za
: >: 
________________________________________________________________________
: >: -------
: >: u2-users mailing list
: >: [email protected]
: >: To unsubscribe please visit http://listserver.u2ug.org/
: >:
: >:
: >:
: >:
: >: -- 
: >: Internal Virus Database is out-of-date.
: >: Checked by AVG Anti-Virus.
: >: Version: 7.0.296 / Virus Database: 265.6.8 - Release Date: 3/01/2005
: >:
: >:
: -------
: u2-users mailing list
: [email protected]
: To unsubscribe please visit http://listserver.u2ug.org/
:
:
:
:
: -- 
: Internal Virus Database is out-of-date.
: Checked by AVG Anti-Virus.
: Version: 7.0.296 / Virus Database: 265.6.8 - Release Date: 3/01/2005
:
: 



-- 
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.8 - Release Date: 3/01/2005
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to