Article View: free.it.visual-basic
Article #167Re: inspiegabile(?) overflow Long se >32768
From: blisca
Date: Sun, 27 Apr 2008 13:04
Date: Sun, 27 Apr 2008 13:04
24 lines
1971 bytes
1971 bytes
"blisca" <bliscachiocciolinatiscalipuntoit> ha scritto nel messaggio news:481475fc$0$18146$4fafbaef@reader3.news.tin.it... > Private Sub Form_Load() > Dim mylong as Long > mylong=1000*33'<<<<<<<<<<<<< > End Sub > > Ciao, > perch� alla riga indicata ho un overflow per un numero tanto piccolo? > > > Grazie e ciao > autorispondo se mai vi fosse qualcuno pi� inesperto di me il risultato temporaneo della moltiplicazione viene messo in una variabile del tipo del pi� grosso dei fattori,in questo caso essendo i fattori integer e byte il risultato verr� posto in un integer,che sar� sforato basterebbe scrivere mylong=1000&*33 ;il & forza a tipo long il numero che lo preced giusto?
Technical Details
Message-ID:
<481479cf$0$18156$4fafbaef@reader3.news.tin.it>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!feeder.news.tin.it!spool.news.tin.it!not-for-mailReferences:
<481475fc$0$18146$4fafbaef@reader3.news.tin.it>Show Full Headers
Complete Article Headers
X-Google-Thread: f94ee,ebcc3c90df8911f6 X-Google-Attributes: gidf94ee,domainid0,public,usenet X-Google-Language: ITALIAN,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!feeder.news.tin.it!spool.news.tin.it!not-for-mail Reply-To: "blisca" <bliscachiocciolinatiscalipuntoit> From: "blisca" <bliscachiocciolinatiscalipuntoit> Newsgroups: free.it.visual-basic References: <481475fc$0$18146$4fafbaef@reader3.news.tin.it> Subject: Re: inspiegabile(?) overflow Long se >32768 Date: Sun, 27 Apr 2008 15:04:12 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response Lines: 27 Message-ID: <481479cf$0$18156$4fafbaef@reader3.news.tin.it> Organization: TIN.IT (http://www.tin.it) X-Comments: Please send technical notifications to newsmaster@tin.it NNTP-Posting-Host: 82.52.71.202 X-Trace: 1209301455 reader3.news.tin.it 18156 82.52.71.202:8274 X-Complaints-To: Please send abuse reports to abuse@retail.telecomitalia.it