Article View: comp.lang.basic.visual
Article #278Re: Help with adding 2 decimal numbers ! and exponents
From: Lasse Madsen
Date: Thu, 07 Dec 2000 16:04
Date: Thu, 07 Dec 2000 16:04
56 lines
3377 bytes
3377 bytes
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:
<90obkt$gpj$1@news.cybercity.dk>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!feeder.qis.net!btnet-peer!btnet!diablo.netcom.net.uk!netcom.net.uk!news1.ebone.net!news.ebone.net!newsrouter.euroconnect.net!news.cybercity.dk!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: f51ba,fc0b475605443650 X-Google-Attributes: gidf51ba,public X-Google-Thread: 10cf61,fc0b475605443650 X-Google-Attributes: gid10cf61,public X-Google-Thread: 106fd2,fc0b475605443650 X-Google-Attributes: gid106fd2,public X-Google-Thread: f645d,fc0b475605443650 X-Google-Attributes: gidf645d,public X-Google-Thread: fb992,fc0b475605443650 X-Google-Attributes: gidfb992,public X-Google-Thread: 107824,fc0b475605443650 X-Google-Attributes: gid107824,public X-Google-ArrivalTime: 2000-12-07 07:50:54 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!feeder.qis.net!btnet-peer!btnet!diablo.netcom.net.uk!netcom.net.uk!news1.ebone.net!news.ebone.net!newsrouter.euroconnect.net!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 17:04:40 +0100 Organization: CyberCity Internet Lines: 58 Message-ID: <90obkt$gpj$1@news.cybercity.dk> References: <90mm95$7u4$1@news.cybercity.dk> NNTP-Posting-Host: port39.ds1-fh.adsl.cybercity.dk X-Trace: news.cybercity.dk 976204253 17203 212.242.218.104 (7 Dec 2000 15:50:53 GMT) X-Complaints-To: abuse@cybercity.dk NNTP-Posting-Date: 7 Dec 2000 15:50:53 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