Ask your own question, for FREE!
Computer Science 11 Online
OpenStudy (anonymous):

How do you represent the (decimal) integer 50 in, oh, "hexadecimal," otherwise known as base-16? Recall that decimal is simply base-10, and binary is simply base-2. Infer from those base systems how to represent this one!

OpenStudy (anonymous):

All you have to do is divide the integer (50) by 16 to get the hexadecimal form. If you get a remainder greater than 9 name them with A or B or likewise.. :)

OpenStudy (anonymous):

You might want to use the modulus function, which returns the value of the remainder.

OpenStudy (rsmith6559):

Here's a little recursive function in Python to convert a base 10 number to any base between 2 and 35, ( the calling program has to check the base's value ): characters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" def mkDigit( number, base ): if( number == 0 ): return "" index = number % base number = number // base return mkDigit( number, base ) + characters[ index ]

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!