EECS 1520 Lecture Notes - Lecture 6: Scientific Notation, Natural Number, Radix Point
mahika.c06 and 40040 others unlocked
54
EECS 1520 Full Course Notes
Verified Note
54 documents
Document Summary
Deci(cid:373)al to 2"s co(cid:373)pli(cid:373)e(cid:374)t if decimal is positive, convert to binary like a natural number if decimal is negative: convert to binary flip the bits, add 1, example, 5 > 0101. Arith(cid:373)etic i(cid:374) 2"s co(cid:373)ple(cid:373)e(cid:374)t: 00 + 00 = 00, 00 + 01 = 01, etc. (cid:1005) i(cid:374) (cid:1006)"s = (cid:1005)(cid:1005)(cid:1005)(cid:1005)(cid:1005)(cid:1005)(cid:1005)(cid:1005: +(cid:1005) i(cid:374) (cid:1006)"s = (cid:1004)(cid:1004)(cid:1004)(cid:1004)(cid:1004)(cid:1004)(cid:1004)(cid:1005, 0 discard the carry bit = 1 00000000. Number overflow if each value is stored using 8 bits, then 127 +3 overflows. Scientific notation: very large and very small numbers are often represented such that their order of magnitude can be compared in general, a x b^e, where e is an integer and a is a real number. Representing real numbers real value in base 10 can be defined by formula: sign c mantissa x 10^exponent. Example: all the following are valid of 234. 56.