🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.basic.visual
Article #279

Re: Help with adding 2 decimal numbers ! and exponents

#279
From: Lasse Madsen
Date: Thu, 07 Dec 2000 17:25
78 lines
4031 bytes
sorry to reply to my self twice but i have now corrected the exponent error
but im still trying to figure out how i can do this :
convert the "Tf.text" from "code below" into "electro" langauge 500 p  (or
pico) (example 12e-12 = 12p)    or said in plain english to convert
exponents into prefix like Kilo etc...

 e6 = M = mega
 e3 = K = kilo
 e-3 = m = mili
 e-6  = u = mirco
 e-9 = n = nano
 e-12 = p = pico

 Thanks once again !



"Lasse Madsen" <Lasse.Madsen@Elektronik.dk> wrote in message
news:90obkt$gpj$1@news.cybercity.dk...
> Thanks the adding of 2 decimal numbers now work ! ! !
>
> but im still having trouble converting the numbers from the following code
> into prefix
>
> 'Frequency = 1 / T
> Text7.Text = (1 / Ttp.Text) & " Hz"
> Tf.Text = Format(CDec(Text7.Text), "Scientific")
>
> (text7.text is an extra box which holds the code of the actual equation
and
> then Tf.text "should" show the PREFIX number it collected from text7.text)
>
> And if its possible i would like to know to to convert the "Tf.text" from
> above into "electro" langauge 500 p  (or pico) (example 12e-12 = 12p)
>
> e6 = M = mega
> e3 = K = kilo
> e-3 = m = mili
> e-6  = u = mirco
> e-9 = n = nano
> e-12 = p = pico
>
> Thanks once again !
>
> "Lasse Madsen" <Lasse.Madsen@Elektronik.dk> wrote in message
> 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: <90ogcd$utr$1@news.cybercity.dk>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!news.tele.dk!194.255.56.67!newsfeed101.telia.com!news.cybercity.dk!not-for-mail
References: <90mm95$7u4$1@news.cybercity.dk> <90obkt$gpj$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: 10cf61,fc0b475605443650
X-Google-Attributes: gid10cf61,public
X-Google-Thread: 106fd2,fc0b475605443650
X-Google-Attributes: gid106fd2,public
X-Google-Thread: fb992,fc0b475605443650
X-Google-Attributes: gidfb992,public
X-Google-Thread: f51ba,fc0b475605443650
X-Google-Attributes: gidf51ba,public
X-Google-Thread: 107824,fc0b475605443650
X-Google-Attributes: gid107824,public
X-Google-Thread: f645d,fc0b475605443650
X-Google-Attributes: gidf645d,public
X-Google-ArrivalTime: 2000-12-07 09:11:48 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!news.tele.dk!194.255.56.67!newsfeed101.telia.com!news.cybercity.dk!not-for-mail
From: "Lasse Madsen" <Lasse.Madsen@Elektronik.dk>
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
Subject: Re: Help with adding 2 decimal numbers ! and exponents
Date: Thu, 7 Dec 2000 18:25:22 +0100
Organization: CyberCity Internet
Lines: 80
Message-ID: <90ogcd$utr$1@news.cybercity.dk>
References: <90mm95$7u4$1@news.cybercity.dk> <90obkt$gpj$1@news.cybercity.dk>
NNTP-Posting-Host: port39.ds1-fh.adsl.cybercity.dk
X-Trace: news.cybercity.dk 976209101 31675 212.242.218.104 (7 Dec 2000 17:11:41 GMT)
X-Complaints-To: abuse@cybercity.dk
NNTP-Posting-Date: 7 Dec 2000 17:11:41 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400