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

Username:   Password: 
 RegisterRegister   
 BASE CONVERTER ANY BASE
Index -> Programming, Turing -> Turing Submissions
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
josh




PostPosted: Thu Mar 18, 2004 6:02 pm   Post subject: (No subject)

thanx for clearing that up. I didn't realize that a base just refered to the digits of a number, and not the number on a whole. Thanx Very Happy
Sponsor
Sponsor
Sponsor
sponsor
guruguru




PostPosted: Thu Mar 18, 2004 7:10 pm   Post subject: (No subject)

Razz Glad to help! Razz
zeldamaster1230




PostPosted: Fri Mar 19, 2004 7:25 pm   Post subject: Close ...

guruguru wrote:
23 is a valid number in base 5. Base 5 contains 1, 2, 3, 4, and 5. If we converted it to our deciaml system, base 10, it would be around 12... I think... But yea it is a legal base 5 number.

Sorry, guruguru. Bases start at 0, not 1. So, s abase 5 would have 0, 1, 2, 3, and 4 in it ... not the number 5, though.
josh




PostPosted: Fri Mar 19, 2004 8:55 pm   Post subject: (No subject)

how is it possible to have a base 12 then??? What would take the place of number 11 because 11 is 2 digets???
shorthair




PostPosted: Fri Mar 19, 2004 9:47 pm   Post subject: (No subject)

0123456789
ABCDEFGHI

once you reach the limit on 0-9 then you use the alphabet , its most common with hex which is base 16
sport




PostPosted: Sat Mar 20, 2004 12:54 pm   Post subject: (No subject)

Thanks shorthair for explaining how the program works.

The program prosses each number by one digit or letter at a time (ABCDEF for hex), there a long number like 4124, will be processed by one digit at a time.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 21 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: