Nov 21, 2011 at 7:14pm
..
Last edited on Dec 8, 2011 at 1:44pm
Nov 21, 2011 at 7:45pm
hi,
this is the formula:
logb(x) = logk(x) / logk(b)
where:
b = base
x = number
k = any base, tipicaly 10 or 2.718...
you can find log function in math.h
then write a function which will convert base with that formula for number x.
Nov 21, 2011 at 9:59pm
..
Last edited on Dec 8, 2011 at 1:44pm
Nov 26, 2011 at 7:36pm
When I convert to hexadecimal base, how do I make it so the 10's are displayed as "A", 11's as "B", and so forth?
Nov 30, 2011 at 9:47pm
...
Last edited on Dec 8, 2011 at 1:44pm
Nov 30, 2011 at 11:25pm
Two questions:
1) Is x set to zero before the while(Dec!=0)
at line 8?
2) How big is the rem[] array? How many values can it store?
Dec 1, 2011 at 1:10am
...
Last edited on Dec 8, 2011 at 1:44pm
Dec 1, 2011 at 1:44am
number with more than 3 digits |
Example: 3544
10 = 110111011000
2.
You would need to store 12 elements.
The
rem[10] array is not big enough to store your data.
Easy solution: make
rem[] bigger.
Last edited on Dec 1, 2011 at 1:46am
Dec 1, 2011 at 3:32am
..
Last edited on Dec 8, 2011 at 1:44pm