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

Username:   Password: 
 RegisterRegister   
 How does the base function in intstr work.
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
braeden




PostPosted: Thu Nov 13, 2008 8:37 pm   Post subject: How does the base function in intstr work.

How does the base function in intstr work.
Any help would be appreciated.[/b]
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Thu Nov 13, 2008 8:45 pm   Post subject: RE:How does the base function in intstr work.

Define 'how does it work'. We could give you a synopsis of the conversions that go on behind the scenes, or the syntax for the command, or something completely different.
gitoxa




PostPosted: Thu Nov 13, 2008 11:26 pm   Post subject: RE:How does the base function in intstr work.

I believe he means the "base" part of intstr.
code:
intstr ( i : int [ , width : int [ , base : int ] ] ) : string

The base is just the number system you want the integer to be converted to. Default is 10. 2 would change it to a binary number, and 16 would change it to hex
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: