Article View: comp.lang.basic.visual
Article #285Re: Help with adding 2 decimal numbers ! and exponents
From: Laurens Brand
Date: Thu, 07 Dec 2000 00:00
Date: Thu, 07 Dec 2000 00:00
40 lines
2654 bytes
2654 bytes
Text1.Text = 0.0000004568
Text2.Text = 0.0000000001
Text3.Text = Format(CDec(Text1.Text) + CDec(Text2.Text), "Scientific")
Perhaps you can use this
Laurens Brand
"Lasse Madsen" <Lasse.Madsen@Elektronik.dk> schreef in bericht
news:90mm95$7u4$1@news.cybercity.dk...
> Hi there im a 1 year electronics student in denmark which has this
problem:
>
> i have 2 values which i want to add (they are vairable) what i tourght i
> could do was
>
> text1.text = (example 0.0000004568 or 0.000000000100)
> text2.text = (same example as above)
> text3.text = result box
> as you might have figured is that im trying to add forinstance 10pico(p)
> with 1 micro(u)
>
> CODE WHICH DOESNT WORK ???
> text3.text = Val(text1.text) + Val(text2.text)
>
> why do the above code doesnt work and what should i do ?
> and how could i make the outcome in exponent for instance if the outcome
is
> 0.0001 the it shoud read 1e-4 ??? how can i do this ?
>
> Thanks alot for your reply !
>
> -------------------------
> Electronics Student
> Lasse Madsen
> H�jrupsvej 52, 2.m.f.
> 9900 Frederikshavn
> Denmark
>
>
Technical Details
Message-ID:
<90nibc$239$1@buty.wanadoo.nl>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<90mm95$7u4$1@news.cybercity.dk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f94ee,fc0b475605443650 X-Google-Attributes: gidf94ee,public X-Google-Thread: 12aaa3,fc0b475605443650 X-Google-Attributes: gid12aaa3,public X-Google-Thread: f645d,fc0b475605443650 X-Google-Attributes: gidf645d,public X-Google-Thread: 10cf61,fc0b475605443650 X-Google-Attributes: gid10cf61,public X-Google-Thread: 107824,fc0b475605443650 X-Google-Attributes: gid107824,public X-Google-Thread: f51ba,fc0b475605443650 X-Google-Attributes: gidf51ba,public X-Google-Thread: 106fd2,fc0b475605443650 X-Google-Attributes: gid106fd2,public X-Google-Thread: fb992,fc0b475605443650 X-Google-Attributes: gidfb992,public From: "Laurens Brand" <laurens.brand@wanadoo.nl> Subject: Re: Help with adding 2 decimal numbers ! and exponents Date: 2000/12/07 Message-ID: <90nibc$239$1@buty.wanadoo.nl> X-Deja-AN: 702088127 References: <90mm95$7u4$1@news.cybercity.dk> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Complaints-To: The appropriate party according to NNTP-Posting-Host: X-Trace: buty.wanadoo.nl 976178348 2153 194.134.212.35 (7 Dec 2000 08:39:08 GMT) Organization: EuroNet Internet X-MSMail-Priority: Normal NNTP-Posting-Date: 7 Dec 2000 08:39:08 GMT Newsgroups: comp.lang.basic.visual,comp.lang.visual.basic,dk.edb.programmering.basic.visual-basic,fj.comp.lang.visualbasic,free.it.programmazione.visualbasic,free.it.visual-basic,microsoft.private.mvp.VisualBasic,microsoft.public.USASalesInfo.Developer.VisualB