Thread
:
2's Complement binary to decimal conversion
View Single Post
#
8
(
permalink
)
February 25th, 2013, 09:46 AM
RustyOnRampage
Registered User
Join Date: Feb 2013
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
thnx a lot, but I,m really confused with the purpose of (binary[i]-'0') in the following statement sum =sum+ (binary[i]-'0')*power;.
RustyOnRampage
View Public Profile
Find all posts by RustyOnRampage