ich habe drei textbox's mit folgenden werten:
textbox1 = 19,95
textbox2 = 20,00
die Formel:
textbox3.text = textbox2.value - textbox1.value
da sollte das ergbnis ja 0,05 sein.
es ist aber 5,000000000
WARUM? was mach da falsch
danke
basti
ich habe drei textbox's mit folgenden werten:
textbox1 = 19,95
textbox2 = 20,00
die Formel:
textbox3.text = textbox2.value - textbox1.value
da sollte das ergbnis ja 0,05 sein.
es ist aber 5,000000000
WARUM? was mach da falsch
danke
basti
versuch mal folgendes
textbox3.text =cdbl( textbox2.value) - cdbl(textbox1.value)
Gruß hajo
aber leider kein erfolg.
das ergbnis ist immer noch 5,000000
das kann das sein?
basti
mache Deine Textbox größer dann siehst Du am Ende E-02
Gruß Hajo
sorry aber was ist e-02 ??? ein fehlercode ?
basti
die Expotential schreibweis 10 hoch -2 oder * 0,01
schreibe
TextBox3.Text = Format(CDbl(TextBox2.Value) - CDbl(TextBox1.Value), "#,##0.00")
Gruß Hajo