Binary Puzzlement...

Jump to Last Post 1-3 of 3 discussions (15 posts)
  1. DzyMsLizzy profile image77
    DzyMsLizzyposted 6 years ago

    Hi folks...
    I'm wondering if someone can sort out something for me.  Just a weird question  my wacky brain came up with today.
    I have a very limited understanding of how binary coding works:  all 1's and 0's, put together into various combinations to stand for characters used to input commands to the computer.  (or translated thereto from 'normal' language by the computer.)

    That's all I know about it. 

    So, today, as I was letting my mind wander, I came up with this question:  "If everything the computer needs to know comes down to 1's and 0's, then how in blazes to you represent a number that is nothing but 1's and 0's, such as $1001.00, without the computer trying to interpret that number as an instruction code?"

    1. GA Anderson profile image85
      GA Andersonposted 6 years agoin reply to this

      Simple DzyMsLizzy,

      The computer will never see that "$1001.00". It will only see the binary data sets representing that number.

      Each of the characters in your number - $1001.00, that's eight different characters, would be represented, (coded), to the computer by a binary data set of 8 bits - a combination eight 0s and 1s,.

      For instance; the binary code for the $ sign is : 00100100

      for the ! it is; 00110001

      etc. etc.

      The computer is pre-programmed to know to read incoming data combinations in sets of eight. So it would read the first eight zeros and ones and say aha! that's a dollar sign. Next set of eight and aha! that's a one etc. etc.

      Tada! Get it?

      GA

      1. DzyMsLizzy profile image77
        DzyMsLizzyposted 6 years agoin reply to this

        Well, sort of, but not really.  How do you represent 1001 except with those very numbers, which undoubtedly mean something else.
        Suppose it was not money, but an article stating that 1001 people attended an event?

        1. GA Anderson profile image85
          GA Andersonposted 6 years agoin reply to this

          One of us has missed the point DzyMsLizzy.

          Your question was about Binary Code, and how a computer would know the difference between binary code and $1001.00.

          Here's how: The binary code that tells the computer; "The data is $1001.00" looks like this;
          00100100 00110001 00110000 00110000 00110001 00101110 00110000 00110000

          When a coder, (or anyone) types a "1" on their keyboard, a "1" isn't what is sent to the computer - from the key click to the processor a conversion takes place.

          The key click sent a "1" but the processor, (computer), received a "00110001"

          Am I still missing your point?

          GA

          1. DzyMsLizzy profile image77
            DzyMsLizzyposted 6 years agoin reply to this

            I understand a little bit better, thank you.

            (I wonder if this is in any way related to the bogus 'scare' about machines crashing, etc. when Y2K arrived...)

            The overly-simplified basics I learned when teaching a Girl Scout badge back in the 1980s, used a 5-place binary code, able to equate to the numbers 1 through 16, via multiplication factors, each space doubling the one to its right, and it went like this:

            00000 = null value; 00001 = 1;  000010 = 2; 00100 = 4; 01000 = 8; and 10000 = 16.

            With that, we could create a simple alphabet cipher:

            A=00001 ; B=00010 ; C=00011 ; etc. until you got to Z, 11001.

            Stopping to think about it, that's a very cumbersome way to write notes, but we got good at it, and it was amusing to see the bewilderment on others' faces when they couldn't read what had been written.  LOL

            Perhaps all of that was way off base, and perfectly useless, but, it did impart the knowledge of how computers understand things.  I know it is exceedingly more complex than that!
            I remember reading, back in the day, about NASA having some trouble with one of its rockets, and sent the programmers back through the code, (one can only imagine the reams of paper it took to print out THOSE kinds of instructions), the problem came down to, believe it or not, a single missing comma!!!

            1. lobobrandon profile image68
              lobobrandonposted 6 years agoin reply to this

              Nope, that was more about the date change and had nothing to do with the binary system.

              1. DzyMsLizzy profile image77
                DzyMsLizzyposted 6 years agoin reply to this

                Right; but I figured the date change would have had to involve some coding; hence, the use of the binary system.  ;-)

                1. lobobrandon profile image68
                  lobobrandonposted 6 years agoin reply to this

                  Yup. But they were worried about the way they programmed the computers I guess. Whether 1999 would change to 2000. It can't be a binary issue as the number 2000 could be displayed. Interesting question though smile Was a nice read.

                  1. wilderness profile image76
                    wildernessposted 6 years agoin reply to this

                    The problem was not whether 1999 would become 2000; it was what would happen when 99 became 00.  Was 00 1900 or 2000?  Programmers abbreviated to a 2 digit year to save memory space, with the dates beginning in 1900.  So would 2000 become 1900?  No one knew, but apparently there was a distinct possibility that the country would crash, from the power grid to communications.

                    We forget, but early computers put a premium on memory space, and great effort was made to conserve it.  My first home computer (a TI 99/4A) had the grand total of 16 K of RAM, and was probably the highest on the market.

            2. RonElFran profile image66
              RonElFranposted 6 years agoin reply to this

              Not strictly on topic, but I have to protest - Y2k was not at all a "bogus scare"!

              The reason all the dire predictions didn't come true was not because they were overblown - they were not - but because an army of programmers, like myself, spent months, sometimes working day and night, changing millions of lines of code on critical computer systems to fix the problem ahead of January 1, 2000 so those systems wouldn't crash.

              Alas, from the standpoint of merited respect and appreciation, we did our jobs too well!

              1. Patty Inglish, MS profile image76
                Patty Inglish, MSposted 6 years agoin reply to this

                I agree with all that, Ron. I was in British Columbia at the time and witnessed a programmer and network administrator spend innumerable hours on this project, including spending most of New Year's Eve day and night with their systems. They also stay tuned to the news of any effects from the East Coast across North America that night. It was exhausting.

  2. ocfireflies profile image71
    ocfirefliesposted 6 years ago

    Loving this discussion!

  3. DzyMsLizzy profile image77
    DzyMsLizzyposted 6 years ago

    I meant no offense to the army of programmers; my comment was based upon my late husband's observation, and he was in the industry at the time.  The "intelligence" they had been given indicated that it was more of  a marketing scheme dreamt up by Bill Gates as a way to sell lots and lots of new computers!

    That's really all I ever heard about it from an "insiders" information.  If that was wrong, sorry.

    1. Patty Inglish, MS profile image76
      Patty Inglish, MSposted 6 years agoin reply to this

      Wow. I never heard that, but I guess I would not be surprised.

 
working

This website uses cookies

As a user in the EEA, your approval is needed on a few things. To provide a better website experience, hubpages.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://corp.maven.io/privacy-policy

Show Details
Necessary
HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
LoginThis is necessary to sign in to the HubPages Service.
Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
AkismetThis is used to detect comment spam. (Privacy Policy)
HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
Features
Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
MavenThis supports the Maven widget and search functionality. (Privacy Policy)
Marketing
Google AdSenseThis is an ad network. (Privacy Policy)
Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
Index ExchangeThis is an ad network. (Privacy Policy)
SovrnThis is an ad network. (Privacy Policy)
Facebook AdsThis is an ad network. (Privacy Policy)
Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
AppNexusThis is an ad network. (Privacy Policy)
OpenxThis is an ad network. (Privacy Policy)
Rubicon ProjectThis is an ad network. (Privacy Policy)
TripleLiftThis is an ad network. (Privacy Policy)
Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
Statistics
Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)
ClickscoThis is a data management platform studying reader behavior (Privacy Policy)