Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
String Math
#2
For converting QB64 single and double and Float types just use N2S$ function to remove the sci notation ( if any in number ) 

dim as Double a, b
a = ...
b = ...
sumAplusB$ = Mr$(N2S$(a), "+", N2S$(b))

Oh Thankyou @Jack for your support. It helps to have outside checks on this stuff Smile

Gotta admit I am rusty with this code and it is not presented very clearly above. I did leave comments what works and what is "not ready for prime time" ie sucks!

PS my goal here is certainly not speed! just functionality for much much more precision of decimal places.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
String Math - by bplus - 03-31-2025, 10:43 PM
RE: String Math - by bplus - 04-01-2025, 01:35 PM
RE: String Math - by bplus - 04-01-2025, 04:24 PM
RE: String Math - by bplus - 04-01-2025, 04:30 PM
RE: String Math - by bplus - 04-02-2025, 12:47 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)