10-09-2023, 08:35 AM
(10-09-2023, 06:15 AM)random1 Wrote: Hi allMaybe I'm missing the point, but here's a simple method I wrote some time back:
Need help with a Scientific Notation to real number converter. Below is a mockup for testing the Function but if I do the
calculations by hand the outputs don't match.
Thanks in advance
Input "Enter your scientific notation number"; sn$
sn$ = UCase$(sn$)
p = InStr(sn$, "E")
lft = Val(Left$(sn$, p - 1))
rt = Val(Right$(sn$, Len(sn$) - p))
Print lft, rt
dn = lft * 10 ^ rt
Print dn
Sleep
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, W.A.) ![Big Grin Big Grin](https://qb64phoenix.com/forum/images/smilies/biggrin.png)
Please visit my Website at: http://oldendayskids.blogspot.com/
![Big Grin Big Grin](https://qb64phoenix.com/forum/images/smilies/biggrin.png)
Please visit my Website at: http://oldendayskids.blogspot.com/