Thread: Damn binary to decimal algorithm

  1. #1
    Registered User
    Join Date
    Mar 2006

    Damn binary to decimal algorithm

    Can someone give me an algorithm to convert binary to decimal format? I've been trying for days to get one to work and I can't find one to work. Thanks are greatly given to any solutions.

  2. #2
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Seattle, WA
    First of all, people on this board don't generally just write the code for someone else. If you post what you have that you can't get to work, then we'll try to help.

    Second, you could probably search the board and actually find an algorithm anyways.
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."

  3. #3
    semi-colon generator ChaosEngine's Avatar
    Join Date
    Sep 2005
    Chch, NZ
    do you understand binary? if so, the algorithm should be simple. (if not, you're kinda stuffed as a programmer )

    break it down into steps, and then post where you're having trouble.
    "I saw a sign that said 'Drink Canada Dry', so I started"
    -- Brendan Behan

    Free Compiler: Visual C++ 2005 Express
    If you program in C++, you need Boost. You should also know how to use the Standard Library (STL). Want to make games? After reading this, I don't like WxWidgets anymore. Want to add some scripting to your App?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I need help with decimal to binary Algorithm
    By webznz in forum C Programming
    Replies: 4
    Last Post: 03-13-2008, 03:52 AM
  2. Replies: 9
    Last Post: 10-07-2006, 05:37 AM
  3. binary - decimal
    By curlious in forum C++ Programming
    Replies: 5
    Last Post: 07-31-2003, 02:25 PM
  4. binary to decimal
    By jk81 in forum C Programming
    Replies: 1
    Last Post: 09-13-2002, 05:20 AM
  5. Ornery binary search algorithm
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 11-17-2001, 03:32 PM