Digital Logic Design Assignment 01 Converting Binary Floating Point Number to Decimal
Digital Logic Design Assignment 01 Converting Binary Floating Point Number to Decimal
by ameer hamza
Uµjpäìøaµjµ IEEE 754 Sµ«p-Päpcì¾µ
F«¾aøµ-P¾µø F¾ä³aø
The IEEE 754 standard defines a specific format for representing floating-point numbers in binary. This standard is widely
used in computing and ensures consistent representation and interpretation of floating-point numbers across different
platforms. The format consists of three main parts:
Sign Bit (1 bit): This bit determines whether the number is positive or negative. A value of 0 represents a positive
number, while 1 indicates a negative number.
Exponent (8 bits): The next 8 bits represent the exponent of the number. This exponent is biased by 127, meaning that
the actual exponent is calculated by subtracting 127 from the value represented by these 8 bits.
Mantissa (23 bits): The remaining 23 bits represent the fractional part of the number, also known as the mantissa. An
implied leading 1 is always assumed in front of the mantissa, representing a value of 1.0.
Step 1: Splitting the Binary String
The first step involves splitting the provided 32-bit binary string into its three constituent components: sign, exponent, and
mantissa. The given binary string is:
11000100110110101011010111000111
Sign bit: The sign bit is 1, which indicates that the number is negative.
Exponent: The exponent is 10001001 in binary, which is equivalent to 137 in decimal. To obtain the actual exponent, we
subtract the bias of 127 from this value: Actual exponent = 137 - 127 = 10.
Mantissa: The mantissa is 10110101011010111000111 in binary. Due to the implied leading 1 in IEEE 754 format, we
write it as 1.10110101011010111000111.
Søpá 3: Ca«c «aøµ øp Va« p
The value of a floating-point number can be calculated using the following formula:
Value= -1,749.926