Hi am in prob. 4 me its now or never to pass. get a program to do.
Convert binary to decimal
octal to decimal
binary to hexadecimal
some1 can help me.
i need some PRO so if interest post ur mail id and i'll mail u my paper
if some1 no some these codes so post plz WITH COMMENTS
plz reply and help me.
manutd4life
0
Junior Poster
Recommended Answers
Jump to PostWe won't do your homework or reply offline.
However, I can help you think through your problem.
A number is a number is a number is a number, no matter how it is represented for us humans. 10 dec == A hex == 12 oct == 1010 bin. …
Jump to PostYou are very close.
You need to move line 22 up before line 19.
On line 19 you accidentally used the wrong variable. (Also, is the same asstrDigit := strBin[[b][i]intLoop[/i][/b]]
.)The difference between binary (radix 2) and some other system is how much you multiply by …
Jump to PostI've already given you all the help I can without giving you the answer. You have to use your brain now.
Think about what you know about converting binary to decimal, and apply the same logic to octal. Then try it and see if it works.
I suggest …
Jump to PostRemember, a char is a different type than an integer. You cannot add or multiply characters.
Also remember, the point is that the digits 0, 1, 2, 3, ... are representations of numbers, not numbers themselves.
Line 23:
Result:=result+[b]octal[len][/b]*base;
You'll have to convert the bolded part from a …
Jump to PostI recommend writing yourself a little procedure to do it
You'll have to write that function yourself.
For hexadecimal, remember that the values of the digits are:
digits: values
0..9: 0..9
A..F: 10..15So the
DigitToInt( 'C' )
should return the value 12.
Good luck.
All 25 Replies
Duoas
1,025
Postaholic
Featured Poster
manutd4life
0
Junior Poster
Duoas
1,025
Postaholic
Featured Poster
manutd4life
0
Junior Poster
Duoas
1,025
Postaholic
Featured Poster
manutd4life
0
Junior Poster
Duoas
1,025
Postaholic
Featured Poster
manutd4life
0
Junior Poster
manutd4life
0
Junior Poster
Duoas
1,025
Postaholic
Featured Poster
manutd4life
0
Junior Poster
Duoas
1,025
Postaholic
Featured Poster
manutd4life
0
Junior Poster
Duoas
1,025
Postaholic
Featured Poster
manutd4life
0
Junior Poster
Duoas
1,025
Postaholic
Featured Poster
manutd4life
0
Junior Poster
Duoas
1,025
Postaholic
Featured Poster
manutd4life
0
Junior Poster
Duoas
1,025
Postaholic
Featured Poster
manutd4life
0
Junior Poster
Duoas
1,025
Postaholic
Featured Poster
manutd4life
0
Junior Poster
Duoas
1,025
Postaholic
Featured Poster
manutd4life
0
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.