Damn binary to decimal algorithm

This is a discussion on Damn binary to decimal algorithm within the C++ Programming forums, part of the General Programming Boards category; Can someone give me an algorithm to convert binary to decimal format? I've been trying for days to get one ...

  1. #1
    Registered User
    Join Date
    Mar 2006
    Location
    Ohio
    Posts
    37

    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
    Location
    Seattle, WA
    Posts
    1,972
    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."
    -XSquared

  3. #3
    semi-colon generator ChaosEngine's Avatar
    Join Date
    Sep 2005
    Location
    Chch, NZ
    Posts
    597
    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, 04:52 AM
  2. Replies: 9
    Last Post: 10-07-2006, 06:37 AM
  3. binary - decimal
    By curlious in forum C++ Programming
    Replies: 5
    Last Post: 07-31-2003, 03:25 PM
  4. binary to decimal
    By jk81 in forum C Programming
    Replies: 1
    Last Post: 09-13-2002, 06:20 AM
  5. Ornery binary search algorithm
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 11-17-2001, 03:32 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21