I don't think that there's anything wrong with your code but faulty QB64 float to string conversion, I rewrote the double and _Float to string functions some time ago and they don't exhibit the problem
if you are interested you can find my code somewhere on this forum
if you are interested you can find my code somewhere on this forum