How Integer and Floating point numbers are stored in computers

Posted

in

by

Tags:

The number has two parts.

  1. Integer Part
  2. Fraction Part

Integers are numbers without the fraction part.
They can range from negative infinity to positive infinity.
Integers are further divided into two parts.

  1. Unsigned number (0 to (2^n – 1); here n = width of data bus)
  2. Signed Numbers ((-2^(n-1)) to (2^n – 1))

Fractional numbers or Floating Point numbers are stored in a standard format known as IEEE 754.
IEEE 754 Floating-Point Standard comes in three different modes.

  1. Single precision Format (32 bits)
  2. Double-precision format


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *