My first calculator

  • dnerd
    17th Mar 2011 Member 0 Permalink
    oh ok, so its basically an input-to-value system.
  • The-Con
    17th Mar 2011 Member 0 Permalink
    Yeah.
    do you have a tip or a hint as too how i would convert binary to decimal ( or the other way). I have no trouble with the concept of binary, just how to implement it in the powder toy. Thanks for any help.
  • dnerd
    17th Mar 2011 Member 0 Permalink


    feel free to use them, u dont even have to give credit.
  • The-Con
    17th Mar 2011 Member 0 Permalink
    Thanks, that helps a lot. I am making my own version of dec to bin now, so that i can understand it. :)
    Thanks
  • dnerd
    17th Mar 2011 Member 0 Permalink
    no problem, a warning: bin to dec is much harder.
  • The-Con
    17th Mar 2011 Member 0 Permalink
    Yeah, i had a look at the bin - dec and it looked hard.
    I made a more compact version of your Decimal to binary:

  • dnerd
    17th Mar 2011 Member 0 Permalink
    @The-Con
    yea i should use that inside-technique, im to lazy lol
  • The-Con
    17th Mar 2011 Member 0 Permalink
    So now i can easily convert decimal to binary, how do i add them together?
    (i need to work it out on my own, but i need another tip... again...)
    Thanks again
  • dnerd
    17th Mar 2011 Member 0 Permalink
    so look at this

    binary addition
    0+0=0
    1+0=1
    0+1=1
    1+1=0 (carry 1)

    XOR logic table
    0 XOR 0 = 0
    1XOR0=1
    0XOR1=1
    1XOR1=0

    they are the same, but how to carry...

    you need a gate that can sense if both inputs are one, so if true, carry.
  • The-Con
    17th Mar 2011 Member 0 Permalink
    OK, so would I be on the right track here?

    Save deleted

    (I suppose i am still a noob when it comes to electonics (mainly binary) because electronics, although i did all avaliable courses at school, They didn't cover much in depth.)