We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What command should I use to make my program pause until the user presses a key?
#21
Hi Elzaimer,

Your problem is caused by using a "non-english" environment. This causes the output of a calculation
with a floating answer with a , (comma) in it. But if you reuse this figure in a calculation the comma is not accepted as a decimal sign but as a
string. So SommeDesEcartsALaMoyenne concatenates the answers.

A solution can be: if you use the LitDev extension by placing LDUtilities.CurrentCulture="en-US" as the first line.

Or you can do the calculation with integers by multiplying with 10000 and rounding. For the display multiply with 0.00001
[-] The following 3 users Like WhTurner's post:
  • Elzaimer, litdev, z-s
Reply


Messages In This Thread
RE: What command should I use to make my program pause until the user presses a key? - by WhTurner - 06-30-2024, 12:37 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)