Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Incorrect result
#9
(08-15-2024, 06:29 PM)Chris Wrote: Without creating a new topic.
INPUT A#
PRINT A#
When entering data:
78.53 displays 78.53
78.54 displays 78.54000000000001
78.55 displays 78.55
What's going on here.

Chris
Floating point anomalies that are common in all programming languages after reading up on the subject. I just recently posted a question concerning this same thing dealing with a different topic.
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply


Messages In This Thread
Incorrect result - by Chris - 08-14-2024, 08:53 AM
RE: Incorrect result - by SMcNeill - 08-14-2024, 09:56 AM
RE: Incorrect result - by luke - 08-14-2024, 12:26 PM
RE: Incorrect result - by Chris - 08-14-2024, 12:47 PM
RE: Incorrect result - by Pete - 08-14-2024, 03:03 PM
RE: Incorrect result - by SMcNeill - 08-14-2024, 03:34 PM
RE: Incorrect result - by Pete - 08-14-2024, 03:40 PM
RE: Incorrect result - by Chris - 08-15-2024, 06:29 PM
RE: Incorrect result - by TerryRitchie - 08-15-2024, 06:51 PM
RE: Incorrect result - by Kernelpanic - 08-15-2024, 07:39 PM
RE: Incorrect result - by Chris - 08-15-2024, 07:43 PM



Users browsing this thread: 2 Guest(s)