
-----------------------------------
TW iz Rippin
Fri Mar 02, 2012 4:03 pm

Decimal -&gt; Hexadecimal
-----------------------------------
What is it you are trying to achieve?
A program that converts decimals to hexadecimals


What is the problem you are having?
Cant figure out the equations


Describe what you have tried to solve this problem
Search the web :(


Please specify what version of Turing you are using
4.1.1

-----------------------------------
crossley7
Fri Mar 02, 2012 5:18 pm

RE:Decimal -&gt; Hexadecimal
-----------------------------------
start by converting figuring out how to convert to binary and what the value of a base does in relation to the number.  For example I will list the first few numbers in binary, decimal and hexadecimal to help.

Analyse these values and figure out what needs to happen and how base relate to each other.  (hint: Use exponents)

Decimal Binary Hexadecimal
1 1 1
2 10 2
3 11 3
4 100 4
5 101 5
6 110 6
7 111 7
8 1000 8
9 1001 9
10 1010 A
11 1011 B
12 1100 C
13 1101 D
14 1110 E
15 1111 F
16 10000 10

-----------------------------------
TW iz Rippin
Fri Mar 02, 2012 6:03 pm

RE:Decimal -&gt; Hexadecimal
-----------------------------------
ok thanks a lot bro... will test some things :)
