Results 1 to 2 of 2
  1. #1
    ijay is offline Member
    Join Date
    Oct 2011
    Posts
    1
    Rep Power
    0

    Default code for binary arithmetic

    I'm trying to build a software to calculate binary numbers, can someone help me with the code to use?
    i.e.addition, subtraction, etc

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,776
    Blog Entries
    7
    Rep Power
    21

    Default Re: code for binary arithmetic

    Can you make a truth table? with variables a, b and c, where c is the carry bit and a and b are the bits to be added or subtracted ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Replies: 1
    Last Post: 03-09-2011, 04:45 PM
  2. ASCII to binary code
    By Vagabond.drv in forum New To Java
    Replies: 12
    Last Post: 01-13-2011, 02:52 PM
  3. Code for image to binary
    By Deva in forum New To Java
    Replies: 3
    Last Post: 12-24-2009, 05:48 PM
  4. code for binary tree in jsp
    By ajay kumar in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 11-17-2009, 07:45 AM
  5. converting image to binary code n vice versa
    By nupurashi in forum Advanced Java
    Replies: 4
    Last Post: 04-01-2009, 08:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •