Skip to main content

ARITHMETIC CALCULATION IN COMPUTERS


ARITHMETIC OPERATION AND CONVERSION DONE BY COMPUTER
computers,computer science,computer,computer arithmetic,arithmetic logic unit (computer processor),how much math is in computer science,computer science math,math for computer science,how computers work,how computers calculate,computer science major,calculator,arithmetic and logic unit,arithmetic,binary arithmetic,arithmetic shift,basic math for computer science,gate computer science,computer science tutor,quantum computers,understanding computers,how much math do computer scientists use

As we have seen in previous post that arithmetic computation is an important thing in calculation, if a person doesn’t know arithmetic computations,  he will be doomed to be in trouble during calculations that happens  in everyday life.  So it is necessary to learn arithmetic computation.  So in this post I am going to take one step further.  I am going to write about octal and hexadecimal numbers.

Now let us discuss some arithmetic conversion.  Let us see what is octal and hexadecimal numbers used by digital computer.

The conversion from and to binary, octal and hexadecimal plays an important part in digital computers.  Since 23 = 8 and 24 = 16 each octal digit corresponds to three binary digits and each four binary digit corresponds to one hexadecimal digit. 

The conversion of from binary to octal is easily accomplished by partitioning the binary into group of three digit each, starting from binary point and preceding to the left or to the right.

The corresponding octal digit is then assigned to each group.  The following  example illustrates the procedure.

 10 110 001 101 011 .  111 100 000 110   = (26153.406)2
  2     6     1     5      3        7      4       0     6

Conversion from binary to hexadecimal is similar,  except that the binary number is divided into group of four digits:
 

10 1100 0110 1011 .  1111 0010    =  (2C6B.F2)16
  2     C       6       B            F        2


The corresponding hexadecimal (or octal) digit for each group of binary digits is easily remembered after studying the values. 

Conversion from octal or hexadecimal to binary is done by procedure reverse to the above.  Each octal digit  is converted to three bit binary equivalent .  Similarly, each hexadecimal digit  is converted to its four-digit binary equivalent. 

Binary numbers are difficult to work with because they require three or four times as many digits as their decimal equivalent .  For example, the binary number 111111111111 is equivalent to decimal number  4095.  However, digital computers use binary numbers and its sometimes necessary for human user to communicate directly to with the machine by means of binary numbers.


One scheme that retains binary  system  in the computer but reduces the number of digits human must consider utilizes the relationship between  binary number system and octal and hexadecimal system.  By this method, the human thinks of the number of octal and hexadecimal  numbers  and performs required conversion by inspection when direct communication by the machine is necessary.  Thus the binary numbers 111111111111 is 12 digit and is expressed in octal as 7777 (four digits) and while it is expressed in hexadecimal as FFF (3 digits).

During communication between people (about binary numbers in the computer), the octal or hexadecimal representation is more desirable because it can be represented in third or quarter of number of digits required for equivalent binary number.

When the human communicates with the machine (through console switches or indicator lights or by means of programs written in machine language),  the conversion from octal or hexadecimal  to binary and vice versa is done by inspection by the human user.


                                                                                   Thank you for reading

Comments

Popular posts from this blog

EXPANSION SLOTS IN MOTHERBOARD

EXPANSION SLOTS IN MOTHERBOARD  Friends today i am going to share my knowledge and understanding of the expansion slots. So lets begin with our topic. Expansion slots are used to provide additional properties for carrying the computation task such as additional video, audio and sound, advanced graphics and Ethernet.   So lets begin with our knowledge hunting. I will start by AGP expansion slots. AGP AGP stands for ACCELARATED GRAPHICS PORT.  AGP was introduced with high speed 3D graphics display in 1996.  It is used for older graphics card types which is discontinued by PCI EX16 graphics port in 2005.   These were kernel version of AGP most of the brand in 1.5 volt DC.  AGP 1x channel and 66MHZ clock speed resulting a data table of 266 MBPS.   AGP 2x, 4x ,8x specification multiply MHZ clock to produce increase throughput. AGP 8x produces effective clock frequency of 533 MHZ resulting a throughput of 2 GBPS (2133MHZ) resulting a throughput of over a 32 bit channel. PCI PCI  stands for P

HOW TO CONFIGURE VIRTUAL MEMORY IN WINDOWS OPERATING SYSTEM?

  HOW TO CONFIGURE VIRTUAL MEMORY IN WINDOWS OPERATING SYSTEM? VIRTUAL MEMORY IS A MEMORY MANAGEMENT CAPABILITY OF AN OPERATING SYSTEM THAT USES HARDWARE AND SOFTWARE TO ALLOW A COMPUTER TO COMPENSATE FOR PHYSICAL MEMORY SHORTAGES BY TEMPORARILY TRANSFERING DATA FROM RAM TO INACTIVE SPACE IN HARD DISK DRIVES TO FORM CONTINIOUS ADDRESESES THAT HOLD BOTH THE APPLICATION AND ITS DATA.  NOW LET US SEE HOW TO CONFIGURE VIRTUAL MEMORY? RIGHT CLICK ON MY COMPUTER --> THIS PC -->PROPERTIES -->ADVANCE SYSTEM SETTING --> PERFORMANCE SETTING -->ADVANCED --> VIRTUAL MEMORY -->CHANGE --> UNCHECK AUTOMATICALLY MANAGE PAGING FILE SIZE FOR ALL DRIVES --> SELECT CUSTOM SIZE  --> TYPE PAGE FILE SIZE IN MEGA BYTES -->  CLICK ON SET ---> OK-->OK--> OK --> RESTART THE SYSTEM.

TROUBLE SHOOTING FOR NO DISPLAY IN PERSONAL COMPUTER.

  TROUBLESHOOTING FOR NO DISPLAY FRIENDS TODAY I AM GOING TO TELL YOU ABOUT THE CORRECT STEPS TO BE TAKEN IN ORDER TO REPAIR THE COMPUTER IF THERE IS NO DISPLAY.  MEANS THAT WHEN YOU START THE COMPUTER, THE CPU FAN AND SMPS FAN IS RUNNING ALL LED IS ON BUT THERE IS NO DISPLAY IN THE MONITOR. STEP 1  START THE COMPUTER AFTER 30 SECONDS  PRESS NUMLOCK KEY COUPLE OF TIMES. IF THE NUMLOCK LED IS GETTING ON AD OFF,  THEN THE PROBLEM IS WITH THE MONITOR.  IF THE NUMLOCK LED IS ON OR STEADY ON OR STEADY OFF THEN THE PROBLEM IS WITH THE CPU. STEP2--> SUPPOSE THE PROBLEM IS WITH THE MONITOR  1) CHECK THE AC WALL OUTLET (PLUG) AND POWER CODE WITH THE LINE TESTER OR MULTIMETER.  NOW CHECK THE POWER BUTTON IS ON AND THE BRIGHNESS EVEL OF THE MONITOR.   2) IF THERE IS NO POWER  IN THE MONITOR  THEN THE POWER PANEL MIGHT BE FAULTY.  REPAIR THE MONITOR IF THE POWER LED IS ON, EJECT THE VGA CABLE  FROM THE CPU AND MESSAGE WILL APPEAR ON THE DISPLAY.     3) IF IT DOES THEN THE VGA CABLE OR