Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Converting a real number into a string
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
aldreneo




PostPosted: 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
Sponsor
sponsor
aldreneo




PostPosted: Wed Jun 21, 2006 12:26 pm   Post subject: (No subject)

Ignore that extra " in line 4
Bored




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: