Thursday 20 November 2014

Arithmetic for Computers(Number System and Operations) -by Nur Haliza

 Numbers
•Bits have no inherent meaning
— conventions define relationship between bits and numbers
•Binary numbers (base 2) 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001... decimal: 0...2n-1
•Complications: numbers are finite (overflow) fractions and real numbers negative numbers
– e.g., no MIPS subi instruction – addi can add a negative number

                                                    Number System Base 
    Essentially,most of the numbering system will have a base.

                                                        Table 1.1 :  The types of number system
    
    ~Decimal number

   ~Binary number
  ~Hexadecimal
*Base of 16
*The composed start from 0 until F.
                             Table 2.2: Number System Conversion 
 
Number System Conversion 
 1. Convert decimal  to binary  .
 Example 1










2. Convert binary to decimal .

 3. Convert decimal to hexadecimal .                     
4. Convert hexadecimal to decimal .



5. Convert binary to hexadecimal .

6. Convert hexadecimal to binary .













 7. Convert binary to decimal .








8. Convert hexadecimal to binary .




       







                                       Operation

*Binary Addition




*Binary Subtraction
*Multiplication



*Division




                                                                                       

No comments:

Post a Comment