Binary to decimal conversion help!

This is a discussion on Binary to decimal conversion help! within the C Programming forums, part of the General Programming Boards category; hello.. i In NEEEDD of help !! how to convert binary numbers into decimal numbers??? can somebody help me.....

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    2

    Question Binary to decimal conversion help!

    hello.. i In NEEEDD of help !!

    how to convert binary numbers into decimal numbers???

    can somebody help me..

  2. #2
    Registered User
    Join Date
    Jan 2002
    Posts
    552
    Code:
    char buf[10] = "         ";
    int num = ..., j = 9;
    
    while (num) {
       buf[j--] = num % 10;
       num /= 10;
    }

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    197
    Ahhhrg!!!!!!!!!!!!!
    Not again!!!!!!!!!!!!!!!!!!!!!!!!

    klausi
    When I close my eyes nobody can see me...

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    I found a whole slew of posts on this topic after a 30 second board search, and that was on a 56k dialup modem. Read the FAQ, search the web, search the board, THEN ask your question if you come up with nothing.

    -Prelude
    My best code is written with the delete key.

  5. #5
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    >Ahhhrg!!!!!!!!!!!!!
    >Not again!!!!!!!!!!!!!!!!!!!!!!!!

    Relax Klausi, take a "leichte weisse" and remember that most new people don't read the faqs or search the boards..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 07-04-2008, 01:39 PM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 03:39 PM
  3. binary decimal conversion
    By eerok in forum C Programming
    Replies: 2
    Last Post: 01-24-2006, 09:51 PM
  4. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 04:00 PM
  5. Decimal to binary conversion help needed
    By Unregistered in forum C Programming
    Replies: 6
    Last Post: 02-06-2002, 01:03 PM

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