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.
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.