Posted: Wed Jun 21, 2006 12:25 pm Post subject: Converting a real number into a string
How do I convert a real number into a string so that I can do something like this:
code:
var message:string
var number:real
get number
message:="You picked the number "+number+".""
get number
message:=message+" You then picked number ",number+"."
put message
Sponsor Sponsor
aldreneo
Posted: Wed Jun 21, 2006 12:26 pm Post subject: (No subject)
Ignore that extra " in line 4
Bored
Posted: Wed Jun 21, 2006 12:47 pm Post subject: (No subject)
realstr, freaslstr, or erealstr depending on jhwat you want. Look these up in the Turing help file, they all convert real numbers to strings.