Path: utzoo!attcan!uunet!mcvax!cernvax!pan!jw From: jw@pan.UUCP (Jamie Watson) Newsgroups: comp.databases Subject: Re: Informix 4gl - no integer arithmetic??? Summary: Baloney Message-ID: <468@pan.UUCP> Date: 9 Sep 88 07:37:53 GMT References: <466@pan.UUCP> <410@infmx.UUCP> Reply-To: jw@pan.UUCP (Jamie Watson) Organization: Adasoft AG, Solothurn, Switzerland Lines: 25 In article <410@infmx.UUCP> aland@infmx.UUCP (Dr. Scump) writes: >In article <466@pan.UUCP>, jw@pan.UUCP (Jamie Watson) writes: >> >> let i = 630 / 100 * 60 >> >> Running this program produces a result of 378!!! > >This is similar to C's promotion of types. For example, try > > printf ("In C, we get %d\n", intvar = (630.0 / 100 * 60)); WHAT?!? Does anyone, anywhere, other than the author of this piece of filth, think that this C statement is the same as the 4gl statement above it? This simply proves my original statement - INFORMIX 4GL HAS NO INTEGER ARITHMETIC. Anyone who has any experience with any real programming language needs to be made aware of this, or they are in for the same nasty surprise that I got. I don't believe that the way to make them aware of it is to hide this fact somewhere in the bowels of a thousand or so pages of *very* poorly written and *incredibly* poorly organized documentation. >This is consistent with the documentation. Big deal. jw