🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Zeri dopo la virgola aiuto

#1080
From: William
Date: Thu, 25 Nov 2004 10:18
26 lines
1571 bytes
AP wrote:
> Salve a tutti ho fatto un programmino in vb6  di contabilit�.
> Ho fatto in modo che le cifre dopo la virgola siano 2 (per l'euro).
> Ma quando le due cifre sono     .00    oppure    .10            (per
> esempio)
>
> Mi saltano gli zeri.
> Quindi per esempio
>
> 100.11       ok
> 100.10       mi scrive   100.1
> 100.00       mi scrive   100
>
> Cosa posso fare?
>
> Spero che mi diate una mano?
> Per favore non riesco ad andare avanti
>
> Grazie sin d'ora
>
> Ciao AP

Quando lo trasformi in testo potresti usare un Format:
textVal=Format$(doubleVal, "#0.00")

William.
Technical Details
Message-ID: <Cjipd.50105$Ni.1727745@twister1.libero.it>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!news-zh.switch.ch!switch.ch!news.mailgate.org!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mail
References: <ccipd.50928$Es2.1099593@twister2.libero.it>

Show Full Headers
Complete Article Headers
X-Google-Thread: f94ee,dfd8f274d321c4a6
X-Google-Attributes: gidf94ee,public
X-Google-Language: ITALIAN,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!news-zh.switch.ch!switch.ch!news.mailgate.org!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mail
From: "William" <willy78@libero.it>
Newsgroups: free.it.visual-basic
References: <ccipd.50928$Es2.1099593@twister2.libero.it>
Subject: Re: Zeri dopo la virgola aiuto
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <Cjipd.50105$Ni.1727745@twister1.libero.it>
Date: Thu, 25 Nov 2004 10:18:10 GMT
NNTP-Posting-Host: 151.38.9.219
X-Complaints-To: abuse@net24.it
X-Trace: twister1.libero.it 1101377890 151.38.9.219 (Thu, 25 Nov 2004 11:18:10 MET)
NNTP-Posting-Date: Thu, 25 Nov 2004 11:18:10 MET
Organization: [Infostrada]