Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Perpetual string math calculator.
#16
Well, none of the local experts noticed that the result in Visual Basic was wrong?  Rolleyes

That is corrext:
Code: (Select All)
Private Sub cmdCommand_Click()

  Dim Zahl1, Zahl2, Ergebnis As Double
 
  'Die Zahlen müssen einzeln aus den Textfeldern gelesen werden
  'Das "Ergebnis = Val(txtZahl1.Text + txtZahl2.Text)" geht nicht
  Zahl1 = Val(txtZahl1.Text)
  Zahl2 = Val(txtZahl2.Text)
  Ergebnis = Zahl1 + Zahl2
  txtErgebnis.Text = Format$(Ergebnis, "###.##") 'Punkt! Englische Version.

End Sub


[Image: Runden-Prog-Fehler2022-08-12-225439.jpg]

Give me a gun!   Tongue

Reply


Messages In This Thread
Perpetual string math calculator. - by Pete - 08-10-2022, 05:11 PM
RE: Perpetual string math calculator. - by Pete - 08-11-2022, 03:24 AM
RE: Perpetual string math calculator. - by Pete - 08-11-2022, 12:39 PM
RE: Perpetual string math calculator. - by Pete - 08-11-2022, 08:29 PM
RE: Perpetual string math calculator. - by Pete - 08-11-2022, 10:08 PM
RE: Perpetual string math calculator. - by bplus - 08-11-2022, 10:07 PM
RE: Perpetual string math calculator. - by Jack - 08-11-2022, 10:35 PM
RE: Perpetual string math calculator. - by Pete - 08-11-2022, 11:35 PM
RE: Perpetual string math calculator. - by Jack - 08-11-2022, 11:42 PM
RE: Perpetual string math calculator. - by Pete - 08-11-2022, 11:51 PM
RE: Perpetual string math calculator. - by Pete - 08-12-2022, 01:56 AM
RE: Perpetual string math calculator. - by Kernelpanic - 08-12-2022, 09:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Word Processor Using Single String Pete 3 248 02-28-2026, 12:07 AM
Last Post: Pete
  new approach to base conversion system and math library Dragoncat 2 593 07-16-2025, 10:19 PM
Last Post: Dragoncat
  b+ String Math Update bplus 31 5,270 04-11-2025, 11:56 AM
Last Post: bplus
  I'm adding SQR to my new faster string math routines... Pete 17 3,376 04-01-2025, 04:56 PM
Last Post: Pete
  Font from a string pattern - help needed grymmjack 22 5,074 08-27-2023, 07:26 PM
Last Post: grymmjack

Forum Jump:


Users browsing this thread: 1 Guest(s)