CMPT 166 Lecture Notes - Lecture 8: .Int, Decimal Mark, Scientific Notation
Document Summary
One of the major aspects of a computer is that you can read or write values in its main memory. A computer"s main memory is often referred to as ram, which stands for random access memory. At the lowest level, ram is just a series of millions and millions of 0s and 1s (bits) that the cpu can quickly change whenever it wants. For example, a 64-bit computers would typically represent the number 65 as a series of 64 bits: This is an example of a binary, or base 2, number. Everyday numbers like 65 are decimal, or base 10. Binary works great for computers because it is so simple, but humans don"t like it as much. People find it hard to read and write all those 1s and 0s, making it both error-prone and tedious to use. So instead, high-level programming languages like processing do their best to use more human- friendly data.