So this SUB came about because I'm currently writing an EPOS system, and could not for the life of me get the math to work properly due to floaty math.
The inability for QB64 to track numbers to the decimal place with accuracy and getting sick of having my program write 1.9 to screen as £1.90 i wrote this piece of code to convert the integers into a string to print to screen.
it is a bit lacking as I first have to convert the integer to string, but this simplifies the process some what.
It is very useful to me, hopefully someone else will find it useful in their program.
pound$ = "0"
penny$ = "0" + penny$:
conv$ = pound$ + "." + penny$
a$ = conv$
pound$
= LEFT$(a$
, (l
- 2)) conv$ = pound$ + "." + penny$
a$ = conv$