Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Negative Binary Complements

Posts: 9
  • Mark post as helpful
  • send pies
  • Report post to moderator
Can anybody help me with the calculation of decimal from binary value of a negative number. I'll explain the problem i'm facing with an example :-

Suppose i have a decimal number char v = 41
Binary value of v = 101001
Form 1's complement of v or = 010110 (inverted the bits)
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please continue this discussion under the duplicate post.
I am going to test your electrical conductivity with this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic