2. NUMBERS FIXED POINT FLOATING POINT REAL NUMBERS FLOATING POINT Number means, Value assigned to a particular symbol. 35 Tens Unit 3 X 10 + 5 X 1 23.45 Whole Part Fractional Part Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
3. 23.4500 X 100 234.500 X 10-1 2345.00 X 10-2 2.34500 X 101 .234500 X 102 Representation of Floating Point Number : +/- m X b+/-e exponent mantissa base . power . power ( Therefore, it is floating point ) Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
4. Arithmetic Operation : Addition and Subtraction i.) make e1 = e2 ii.) Add/Subtract m1 and m2 Example : N1 N2 29.32 2.48 29.32 X 100 2.48 X 100 2.932 X 101 .248 X 101 2.932 X 101 .248 X 101 -------------------------- 3.580 X 101 -------------------------- Multiplication i.) Add e1 = e2 ii.) Multiply m1 and m2 Division i.) Subtraction e1 = e2 ii.) Divide m1 and m2 Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
5. Normalization of Numbers : After decimal there is always non zero value than representation is called NORMALIZED But, ZERO can not be normalized, because zero can not contain any non zero value therefore it is so. For –ve 0 For +ve __ . __ __ __ __ __ __ __ __ __ __ __ m Exp sign sign Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
6. Errors are of 2 types : 1.) Truncation Error .0003899 .00038 here, 99 X 10-7 2.) Round off Error .0003899 .00039 here, 99 X 10-7 In both the above cases there is intolerable. Therefore we go for After decimal there is always non zero value than representation is called NORMALIZED Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
9. +/- m X b +/-e 23 8 1 IEEE 754 Standard : Double Single for exponent biased value 127 (default number) EXPONENT MANTISSA 32 32 bits because it is decided in standard in 1EEE 754 floating point standard Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com