Forum » Programiranje » [VB] delenje
[VB] delenje
Guti ::
Zdravo
Na hitro :D delim dve malo vecji stevili in rezultat je npr
0,004546 on pa mi izpise 4,546E-03 sej to si znam predstavljat da je to na minus tretjo vse vredu in prav samo jaz bi rad mel lep rezultat 0.004546
Na hitro :D delim dve malo vecji stevili in rezultat je npr
0,004546 on pa mi izpise 4,546E-03 sej to si znam predstavljat da je to na minus tretjo vse vredu in prav samo jaz bi rad mel lep rezultat 0.004546
Take me down to the paradise city
Where the grass is green
And the girls are pretty
Where the grass is green
And the girls are pretty
Pimoz ::
hiho...zdj nevem tocn kako je v vbju sm s tipom je najbrz neki narobe...
uporabi long ali pa double...v cju vem da imas za taka stevila poseben tip z znanstveno notacijo, ki ga moras pretvoriti
uporabi long ali pa double...v cju vem da imas za taka stevila poseben tip z znanstveno notacijo, ki ga moras pretvoriti
StratOS ::
Dim a As Double
Dim b As Double
Dim c As Double
a = 10233.2344
b = 3.455
c = a \ b
Debug.Print c
c = a / b
Debug.Print c
Debug.Print Format$(c, ".###")
Debug.Print Format$(c, "0.00E+00")
Rezultat :
3411
2961,86234442836
2961,862
2,96E+03
Več o VB format$ http://www.apostate.com/programming/vb-...
Dim b As Double
Dim c As Double
a = 10233.2344
b = 3.455
c = a \ b
Debug.Print c
c = a / b
Debug.Print c
Debug.Print Format$(c, ".###")
Debug.Print Format$(c, "0.00E+00")
Rezultat :
3411
2961,86234442836
2961,862
2,96E+03
Več o VB format$ http://www.apostate.com/programming/vb-...
"Multitasking - ability to f##k up several things at once."
"It works better if you plug it in."
"The one who is digging the hole for the other to fall in is allready in it."
"It works better if you plug it in."
"The one who is digging the hole for the other to fall in is allready in it."
Monster ::
oni E pomeni kao 10na nekaj ..se pravi E-03 al kok mas je isto ko ona stevilka*10^-3
Ka zaboga...
StratOS ::
ja,pa še ena pravopisna :
delenje = deljenje :)
delenje = deljenje :)
"Multitasking - ability to f##k up several things at once."
"It works better if you plug it in."
"The one who is digging the hole for the other to fall in is allready in it."
"It works better if you plug it in."
"The one who is digging the hole for the other to fall in is allready in it."
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | vba arrayOddelek: Programiranje | 934 (627) | Vazelin |
» | Mojstri excela pomoč prosimOddelek: Programska oprema | 1473 (1339) | icko |
» | zacetniska vprasanja pri Visual Basicu 6Oddelek: Programiranje | 1690 (1441) | mte |
» | Visual Basic 6 branje txt datoteke problemOddelek: Programiranje | 1178 (1101) | Red_Mamba |
» | hello worldOddelek: Programiranje | 1407 (887) | Thomas |