Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I'm adding SQR to my new faster string math routines...
#13
Re sqr(78):
Wolfram Alpha says it's 8.8317608663278468547640427269592539641746394809314178262102029725...
which matches your string math all the way out.

The QB64 value just seems to have an limit-of-precision error due to where calculation stopped before the result was converted to decimal.
QBasic agrees with QB64, while GWBasic sez 8.831760406494141, so GWB is only calculating at single-precision.

(Edited to add: TurboBasic (DOS), FreeBasic, TDM GCC, and Tiny C also agree with QB64 so yeah, it's a double-precision issue.)
Reply


Messages In This Thread
RE: I might add SQR to my string math routines... - by JRace - 08-18-2022, 06:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Word Processor Using Single String Pete 3 250 02-28-2026, 12:07 AM
Last Post: Pete
  new approach to base conversion system and math library Dragoncat 2 595 07-16-2025, 10:19 PM
Last Post: Dragoncat
  b+ String Math Update bplus 31 5,277 04-11-2025, 11:56 AM
Last Post: bplus
  Font from a string pattern - help needed grymmjack 22 5,080 08-27-2023, 07:26 PM
Last Post: grymmjack
  Mouse Routines to Use and Hack TerryRitchie 3 1,215 08-15-2023, 12:11 AM
Last Post: grymmjack

Forum Jump:


Users browsing this thread: 1 Guest(s)