Other number systems used in computer programming

  • In system level programming (= low level programming), programmers often needs to use the binary representation

  • Writing out binary numbers is very tedious (long):

        1101110111010101     
      

  • Instead of the binary repr., system level programmers often use:

      • Octal numbers (i.e.: base 8)           or        
      • Hexadecimal numbers (i.e.: base 16)      

    to shorten the print out of binary numbers

  • Example:

       Binary representation    Octal representation   
      
          1101110111010101          156725