Binary Representation Major All Engineering Majors Authors Autar
Binary Representation Major: All Engineering Majors Authors: Autar Kaw, Matthew Emmons http: //numericalmethods. eng. usf. edu Transforming Numerical Methods Education for STEM Undergraduates 3/10/2021 http: //numericalmethods. eng. usf. edu 1
Binary Representation http: //numericalmethods. eng. usf. edu
How a Decimal Number is Represented 3 lmethods. eng. usf. edu http: //numerica
Base 2 4 lmethods. eng. usf. edu http: //numerica
Convert Base 10 Integer to binary representation Table 1 Converting a base-10 integer to binary representation. Quotient 11/2 5 5/2 2 2/2 1 1/2 0 Remainder Hence 5 lmethods. eng. usf. edu http: //numerica
Start Input (N)10 Integer N to be converted to binary format i=0 Divide N by 2 to get quotient Q & remainder R i=i+1, N=Q ai = R No Is Q = 0? Yes n=i (N)10 = (an. . . a 0)2 STOP 6 lmethods. eng. usf. edu http: //numerica
Fractional Decimal Number to Binary Table 2. Converting a base-10 fraction to binary representation. Number after decimal 0. 375 0. 75 1. 0 0. 375 0. 0 Number before decimal Hence 7 lmethods. eng. usf. edu http: //numerica
Start Fraction F to be converted to binary format Input (F)10 Multiply F by 2 to get number before decimal, S and after decimal, T ai = R No Is T =0? Yes n=i (F)10 = (a-1. . . a-n)2 STOP 8 lmethods. eng. usf. edu http: //numerica
Decimal Number to Binary Since and we have 9 lmethods. eng. usf. edu http: //numerica
All Fractional Decimal Numbers Cannot be Represented Exactly Table 3. Converting a base-10 fraction to approximate binary representation. Number 0. 6 1. 2 0. 4 0. 8 1. 6 10 Number after decimal 0. 6 0. 2 0. 4 0. 8 0. 6 Number before Decimal lmethods. eng. usf. edu http: //numerica
Another Way to Look at Conversion Convert 11 to base 2 lmethods. eng. usf. edu http: //numerica
12 lmethods. eng. usf. edu http: //numerica
Additional Resources For all resources on this topic such as digital audiovisual lectures, primers, textbook chapters, multiple-choice tests, worksheets in MATLAB, MATHEMATICA, Math. Cad and MAPLE, blogs, related physical problems, please visit http: //numericalmethods. eng. usf. edu/topics/binary_repr esentation. html
THE END http: //numericalmethods. eng. usf. edu
- Slides: 14