Skip to content

aaravjn/floating-point-arithmetic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Floating Point Arithmetic

Task:-

To Add/Subtract or Multiply two floating point numbers in a custom format

Format of the floating point numbers:-

The format is very much similar to IEEE 754 format. The floating point number is 32 bits, and the first bit is reserved for sign-bit. The following 12 bits are for exponents in 2's complement format, and the rest 19 bits are for mantissa in normalized form.

The final result is stored in the memory.

A Flow chart of Adding or Substrating Floating point numbers in IEEE 754 format.

L06_FloatingPointArithmetic pptx

A Flow chart of Multiplying Floating point numbers in IEEE 754 format.

L06_FloatingPointArithmetic pptx(1)

Open to suggestions to improve this code. Peace 🏳️

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published