0% found this document useful (0 votes)
42 views9 pages

The Computer With High Level Programming Facility Must Have A Provision of Floating Point Arithmetic Operations There Are Two Ways

Floating point numbers allow computers to store a wider range of numbers by representing them in two parts: a mantissa and an exponent. Most computers have internal hardware for floating point arithmetic operations. Floating point addition or subtraction involves adjusting the exponent and shifting bits of the mantissa to align the decimal points before adding or subtracting the significands and normalizing the result.

Uploaded by

Sesha Sai
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views9 pages

The Computer With High Level Programming Facility Must Have A Provision of Floating Point Arithmetic Operations There Are Two Ways

Floating point numbers allow computers to store a wider range of numbers by representing them in two parts: a mantissa and an exponent. Most computers have internal hardware for floating point arithmetic operations. Floating point addition or subtraction involves adjusting the exponent and shifting bits of the mantissa to align the decimal points before adding or subtracting the significands and normalizing the result.

Uploaded by

Sesha Sai
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 9

Floating Point

The Computer with high level programming facility must have a provision of floating point arithmetic operations There are two ways
A internal Hardware Compiler must be designed with a package of floating point sub-routines

Most Computer comes with Internal Hardware


Ex: Intel 8231, Am9512

A Floating point in computer register will have two parts


Mantissa ( m ) Exponent( e )

m*re

Floating point increases the range of numbers that can be store in a computer It increases the accuracy of a number

Example:
8bits 28 ie ., the max number can be stored is 256 4 bits ( m) 24 4 bits ( e) 24

Floating Point

+/- .significand x 2exponent

Floating Point Addition Or Subtraction


.35 * 104 + .54 * 103

(.54+.054) * 104

Adjustment of exponent and mantissa require shifting of bits either right or left A floating point operation may produce one of these conditions
Exponent Overflow Exponent Underflow Mantissa Underflow Mantissa Overflow

Floating-Point Numbers and Arithmetic Operations

FP Arithmetic +/ Check for zeros Align significands (adjusting exponents) Add or subtract significands Normalize result

FP Addition & Subtraction Flowchart

You might also like