03-05-2004, 09:42 AM
How to convert the following:
a0 = 0
a1 = 88.28
into
a$ = "0 - 88.28"
Thanks
a0 = 0
a1 = 88.28
into
a$ = "0 - 88.28"
Thanks
How to convert from Integer into String ? Please help...
|
03-05-2004, 09:42 AM
How to convert the following:
a0 = 0 a1 = 88.28 into a$ = "0 - 88.28" Thanks
03-05-2004, 09:52 AM
Code: a$ = ltrim$(str$(a0)) + " - " + ltrim$(str$(a1))
03-05-2004, 09:57 AM
Thanks, Plasma
03-05-2004, 07:28 PM
For the record, here are four useful functions:
Code: VAL (s$). s$ is a string expression that you want to convert to a number. For example VAL("11162.723dd") returns 11162.723.
f only life let you press CTRL-Z.
-------------------------------------- Freebasic is like QB, except it doesn't suck.
03-05-2004, 09:13 PM
Quote:For the record, here are four useful functions: Correction: Code: STR$(n). Returns the string that represents the numeric expression passed. For example, STR$(11512.661) returns " 11512.661". That is why the LTRIM$ is required.
03-05-2004, 09:28 PM
Very true, forgot about that...
I guess that's space for the sign?
f only life let you press CTRL-Z.
-------------------------------------- Freebasic is like QB, except it doesn't suck.
03-06-2004, 12:27 AM
Indeed it is. pretty silly really, they should make the space for the sign only appear if it is negative. But i suppose it is required to identify positive signed numbers.
|
« Next Oldest | Next Newest »
|