Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1101145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:59:30+00:00 2026-05-17T00:59:30+00:00

* *Hey i was working on an application which converts any basenumber like (2,8,10,16,etc)

  • 0

**Hey i was working on an application which converts any basenumber like (2,8,10,16,etc) to user’s desire base system. I am having a problem in converting a binary number to its octal number can anyone help me out?

I tried everthing like

// i am taking a binary number in value and then converting it to base 8

Int32 value = int.Parse(convertnumber);                           
Console.WriteLine(Convert.ToString(value, 8));

For example:
value =10011

Answer should be this “23” but using the above code i am getting “23433”

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T00:59:30+00:00Added an answer on May 17, 2026 at 12:59 am
    string binary = "10011";
    int integer = Convert.ToInt32(binary, 2);
    Console.WriteLine(Convert.ToString(integer, 8));
    
    Output: 23
    

    In this example we convert the binary string representation to an integer and from an integer to the octal string representation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey guys! I've been working on c++ application lately which has to be run
Hey guys Im currently working on ios application which is requesting data using SOAP.
Hey everyone, I'm working on an application and I'm having difficulty with the new
Hey, so I have been making an application which sends weekly notifications at user-specified
Hey guys I am working on android application. My app includes an activity which
Hey all. I'm working on an application that was originally intended for HTML, but
hey guys im working on a task to make my story's links like this
Hey guys, I'm working on a status-Updater. It works, there is just one problem,
Hey everyone, I just finished up an application I've been working on for a
Hey, so I'm having a bunch of trouble getting ExternalInterface to work, which is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.