# Data representation and computer arithmetic

## How does a computer perform arithmetic operations?

To execute arithmetic operations there is a separate section called arithmetic processing unit in central processing unit.

The arithmetic instructions are performed generally on binary or decimal data.

Fixed-point numbers are used to represent integers or fractions.

We can have signed or unsigned negative numbers..

## How to do computer arithmetic?

In binary system, each digit can only be either 0 or 1, while in decimal system, each digit can be any of the 10 digits from 0 to 9.

Arithmetic operations: The basic arithmetic operations used in computer arithmetic are addition, subtraction, multiplication, and division._{Apr 23, 2023}.

## What is data representation in computer?

Data Representation refers to the form in which data is stored, processed, and transmitted. • Devices such as smartphones, iPods, and computers store data in digital formats that can be handled by electronic circuitry..

- In binary system, each digit can only be either 0 or 1, while in decimal system, each digit can be any of the 10 digits from 0 to 9.

Arithmetic operations: The basic arithmetic operations used in computer arithmetic are addition, subtraction, multiplication, and division._{Apr 23, 2023}

Data is represented and stored in a computer using groups of binary digits called words. This chapter begins by describing binary codes and how words re used to represent characters. It then concentrates on the representation of positive and negative integers and how binary arithmetic is performed within the ALU.

Computer Representation of Numbers and Computer Arithmetic In a Computer numbers are represented by** binary digits 0 and 1**. Computers employ binary arithmetic for performing operations on numbers. Since it gets cumbersome to display large numbers in binary form computers usually display them in hexadecimal or octal or decimal system.**Computer arithmetic is a branch of computer engineering that deals with methods of representing integers and real values** (e.g., fixed- and floating-point numbers) in digital systems and efficient algorithms for manipulating such numbers by means of hardware circuits or software routines.