Need help with number conversions

Dreyer1011

New Member
Joined
Aug 12, 2016
Messages
1
Reaction score
0
Hi im new here and i dont know where to post this so im sorry if it is the wrong place..i need help with octal addition and more any help would be helpful..please message me at <removed>..im studying at cti college in cape town durbanville..there is a new name so this is not an old post
 
Last edited by a moderator:
Please detail the kind of help you need. Addition, in any base, is straight forward. You could even jump to decimal, add, go back to octal. I think you need to share a few more details - it is highly unlikely that anyone is going to go off-forum via phone numbers to assist you but I can guarantee that the assistance will be provided here.

That said, I have asked the mods to move your post to the relevant place.
 
Try this. From string to integer. Then from integer to octal representation.

string binary = "10011";
int integer = Convert.ToInt32(binary, 2);
Console.WriteLine(Convert.ToString(integer, 8));

Output: 23
 
Top
Sign up to the MyBroadband newsletter
X