Computing.Net > Forums > Programming > Convert decimal to binary

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Convert decimal to binary

Reply to Message Icon

Name: mirdula
Date: February 6, 2009 at 11:53:32 Pacific
OS: Windows XP
Subcategory: C/C++
Comment:

I need to write a function in C++ to convert a decimal integer to an eight-bit two’s complement binary number.
Use binNum[0] to store the most significant bit and binNum[7] to store the least significant bit.
I know how to convert decimal integer into binary number but I can not do it right with two's complement .Please can somebody help with it.



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Convert decimal to binary

converting text to binary www.computing.net/answers/programming/converting-text-to-binary/4891.html

decimal to binary conversion help!! www.computing.net/answers/programming/decimal-to-binary-conversion-help/4822.html

How to convert Ascii to binary www.computing.net/answers/programming/how-to-convert-ascii-to-binary/829.html