🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Help with adding 2 decimal numbers ! and exponents

#283
From: Lasse Madsen
Date: Thu, 07 Dec 2000 00:53
26 lines
2638 bytes
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: <90mm95$7u4$1@news.cybercity.dk>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!neel.uni2.net!sunsite.auc.dk!newsrouter.euroconnect.net!news.cybercity.dk!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f94ee,fc0b475605443650,start
X-Google-Attributes: gidf94ee,public
X-Google-Thread: f51ba,fc0b475605443650,start
X-Google-Attributes: gidf51ba,public
X-Google-Thread: 10cf61,fc0b475605443650,start
X-Google-Attributes: gid10cf61,public
X-Google-Thread: 107824,fc0b475605443650,start
X-Google-Attributes: gid107824,public
X-Google-Thread: 12aaa3,fc0b475605443650,start
X-Google-Attributes: gid12aaa3,public
X-Google-Thread: 106fd2,fc0b475605443650,start
X-Google-Attributes: gid106fd2,public
X-Google-Thread: fb992,fc0b475605443650,start
X-Google-Attributes: gidfb992,public
X-Google-Thread: f645d,fc0b475605443650,start
X-Google-Attributes: gidf645d,public
X-Google-ArrivalTime: 2000-12-06 16:40:09 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!neel.uni2.net!sunsite.auc.dk!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,microsoft.public.USASalesInfo.Developer.VisualB
Subject: Help with adding 2 decimal numbers ! and exponents
Date: Thu, 7 Dec 2000 01:53:35 +0100
Organization: CyberCity Internet
Lines: 28
Message-ID: <90mm95$7u4$1@news.cybercity.dk>
NNTP-Posting-Host: port39.ds1-fh.adsl.cybercity.dk
X-Trace: news.cybercity.dk 976149605 8132 212.242.218.104 (7 Dec 2000 00:40:05 GMT)
X-Complaints-To: abuse@cybercity.dk
NNTP-Posting-Date: 7 Dec 2000 00:40:05 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