1 / 6

Representing Data

Representing Data. Types of Data. Similar across many programming language s. String "time 2-fly" List [2, 6.8, "time 2-fly"] . Integer 2 Float 6.8 . Types of Data. Similar across many programming language s. String List . Integer Float .

lesko
Download Presentation

Representing Data

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Representing Data

  2. Types of Data Similar across many programming language s • String "time 2-fly" • List [2, 6.8, "time 2-fly"] • Integer 2 • Float 6.8

  3. Types of Data Similar across many programming language s • String • List • Integer • Float

  4. Integers in 0s and 1sBinary representation 6 (decimal) = 110 (binary)

  5. What is binary? • Can represent anything digital • Base 2. Only two digits 0 and 1 • Why is 1011 eleven? + + +

  6. Decimal is Base 10 • Ten digits: 0123456789 • Why is 9047 nine thousand forty seven?

More Related