Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Int to string 1

Status
Not open for further replies.

aaiqbal

Programmer
Sep 15, 2003
26
US
Hey Everyone,
I know you can convert a string into an int using the atoi function but how do you convert an int into a string. If there is a handy function, please let me know.
 
How about itoa ??

The example from the Help File:
proc main
integer Miles = 257 ; Distance traveled.
integer Gallons = 14 ; Volume of fuel used.
integer Mileage ; Mileage for trip.
string MileageString ; Mileage as a string.

Mileage = Miles / Gallons ; Figure mileage.
itoa Mileage MileageString ; Convert mileage to string.
usermsg "Miles per Gallon: %s" MileageString
endproc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top