🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #169

Re: inspiegabile(?) overflow Long se >32768

#169
From: blisca
Date: Thu, 01 May 2008 06:18
24 lines
2110 bytes
"William" <willy78@libero.it> ha scritto nel messaggio 
news:fv43ki$l3r$1@aioe.org...
> blisca wrote:
>> 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?
>
> S�, ma dal momento che il risultato di una moltiplicazione di due valori 
> costanti dar� sempre lo stesso valore non sarebbe pi� semplice scrivere 
> direttamente: mylong=33000 ?
>
> William.
eddai l'ho fatto per fare un esempio evidente in una riga,nel codice il 
problema avveniva moltiplicando due variabili

buon  1� Maggio 
Technical Details
Message-ID: <481960d3$0$40221$4fafbaef@reader5.news.tin.it>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!feeder.news.tin.it!spool.news.tin.it!not-for-mail
References: <481475fc$0$18146$4fafbaef@reader3.news.tin.it> <481479cf$0$18156$4fafbaef@reader3.news.tin.it> <fv43ki$l3r$1@aioe.org>

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!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!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> <481479cf$0$18156$4fafbaef@reader3.news.tin.it> <fv43ki$l3r$1@aioe.org>
Subject: Re: inspiegabile(?) overflow Long se >32768
Date: Thu, 1 May 2008 08:18:57 +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: 26
Message-ID: <481960d3$0$40221$4fafbaef@reader5.news.tin.it>
Organization: TIN.IT (http://www.tin.it)
X-Comments: Please send technical notifications to newsmaster@tin.it
NNTP-Posting-Host: 82.54.151.189
X-Trace: 1209622739 reader5.news.tin.it 40221 82.54.151.189:6540
X-Complaints-To: Please send abuse reports to abuse@retail.telecomitalia.it