Download Class A2 IGCSE Computing Chapter 32 Number Bases
Transcript
To convert the number to be subtracted to a negative number, then add it Consider : 30 – 20 First convert -20 to 20 20 0001 0100 -20 1110 1100 +30 0001 1110 0000 1010 = +10 Chapter 33 Floating Point Numbers 0.5 0.25 0.125 0.0625 .1/2 ¼ 1/8 1/6 Two decimal places in Decimals can hold even 1 paisa (of a rupee) (discuss – what 2 decimal places in a binary can hold) 0.5,0.25, 0.75 Floating point binary Consider a decimal – 12000 can be written as 12 * 10^5 Similarly binary – 110.1 can be written as 0.1101 * 2^3 Floating point binary is made up of a sign bit, mantissa (9 bits) and exponent (6 bits). Example 1 : 0 110100000 000011 0.1101 2^3 110.1 Binary 3