๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #10391

Re: Problems when adding the two numbers 2147483646 and 2 in Jbuilder......WHY...WHY....WHY

#10391
From: Tor Iver Wilhelmsen
Date: Tue, 21 Sep 1999 00:00
6 lines
714 bytes
"xxx" <@slagehs.dk> writes:

>   int a, b, sum; // erkl๏ฟฝring af variable

You will want to use long instead: int has a maximum value of 2^32-1,
which you appear to cross with your addition.
Technical Details
Message-ID: <uhfkoh9nt.fsf@sds.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7s7jtb$nrs3@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,38056fd1a63a0ae6
X-Google-Attributes: gid111d45,public
From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no>
Subject: Re: Problems when adding the two numbers 2147483646 and 2 in Jbuilder......WHY...WHY....WHY
Date: 1999/09/21
Message-ID: <uhfkoh9nt.fsf@sds.no>
X-Deja-AN: 527766626
Sender: towi@SDSA1761
References: <7s7jtb$nrs3@forums.borland.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing