answersLogoWhite

0


Best Answer

As you may know, IEEE754 single precision numbers are made of three parts: sign (1-bit), exponent (8-bit) and mantissa (23-bit). For simplicity, let's assume we deal with normalized numbers all the time. The equation is the following: (-1)^(SIGN) * 1.MANTISSA * 2^(EXPONENT-127) Let's do an example. Say we have the following IEEE754 number in binary format: 1 11000000 11011100000101111110111 The sign bit is 1, which means the number is negative. The exponent is 11000000, which converts to 192 in decimal (1x2^7 + 1x2^6). We subtract 127 (this is an offset which is added to allow negative value as well) and we get 65. The mantissa is 11011100000101111110111. When the number is normalized, we have an implicit 1 on the left followed by a point and the number which leads to: 1.11011100000101111110111 This is a fractional binary number and it is converted as follows: 1 x 2^0 +

1 x 2^-1 +

1 x 2^-2 +

0 x 2^-3 +

1 x 2^-4 +

1 x 2^-5 +

1 x 2^-6 +

0 x 2^-7 +

0 x 2^-8 +

0 x 2^-9 +

0 x 2^-10 +

0 x 2^-11 +

1 x 2^-12 +

0 x 2^-13 +

1 x 2^-14 +

1 x 2^-15 +

1 x 2^-16 +

1 x 2^-17 +

1 x 2^-18 +

1 x 2^-19 +

0 x 2^-20 +

1 x 2^-21 +

1 x 2^-22 +

1 x 2^-23 Which is equal to approximately 1.859740138 So now we have -1 * 2^65 * 1.859740138 = -6.86123E19 Here you go! This is very long to do by hand so I suggest you use a converter that supports IEEE754 to speed up conversion. This one is quite good: http://www.binaryconvert.com/convert_float.html

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the steps to convert a IEEE 754 binary floating point representation single precision to decimal?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the utility of floating point representation of numbers?

A floating point number is, in normal mathematical terms, a real number. It's of the form: 1.0, 64.369, -55.5555555, and so forth. It basically means that the number can have a number a digits after a decimal point.


What is double precision value?

That usually refers to a floating-point number that is stored in 8 bytes, and has (in decimal) about 15 significant digits. In contrast, single-precision is stored in 4 bytes, and has only 6-7 significant digits.


Clearly explain the functions that the mantissa and exponent have in floating point number?

Think of the floating-point number as a number in scientific notation, for example, 5.3 x 106 (i.e., 5.3 millions). In this example, 5.3 is the mantissa, whereas 6 is the exponent. The situation is slightly more complicated, in that floating-point numbers used in computers are stored internally in binary. Some precision can be lost when converting between decimal and binary.Think of the floating-point number as a number in scientific notation, for example, 5.3 x 106 (i.e., 5.3 millions). In this example, 5.3 is the mantissa, whereas 6 is the exponent. The situation is slightly more complicated, in that floating-point numbers used in computers are stored internally in binary. Some precision can be lost when converting between decimal and binary.Think of the floating-point number as a number in scientific notation, for example, 5.3 x 106 (i.e., 5.3 millions). In this example, 5.3 is the mantissa, whereas 6 is the exponent. The situation is slightly more complicated, in that floating-point numbers used in computers are stored internally in binary. Some precision can be lost when converting between decimal and binary.Think of the floating-point number as a number in scientific notation, for example, 5.3 x 106 (i.e., 5.3 millions). In this example, 5.3 is the mantissa, whereas 6 is the exponent. The situation is slightly more complicated, in that floating-point numbers used in computers are stored internally in binary. Some precision can be lost when converting between decimal and binary.


How do you write a floating point variable in c?

You declare a floating point variable using the float or double keyword for a single- or double-precision floating point variable, respectively:float a;double b;You reference a floating-point variable just like any other scalar variable by using the variable's name in a compatible expression, e.g.a += 2;b /= a;Floating point literals use a period for the decimal point, no "thousands separator," and use the letter 'e' to denote a power of ten, e.g.a = 0.123;b = 123e-3;Both a and b now have the same value, 123 times 10 to the power of -3 (which equals 0.123).


Loss of precision error in java?

A loss of precision error occurs when you use a variable of a data type that holds more decimal values than the type of the variable you are converting/inserting to.

Related questions

How many bits are used in double precision floating point format number representation?

Depends on the format IEEE double precision floating point is 64 bits. But all sorts of other sizes have been used IBM 7094 double precision floating point was 72 bits CDC 6600 double precision floating point was 120 bits Sperry UNIVAC 1110 double precision floating point was 72 bits the DEC VAX had about half a dozen different floating point formats varying from 32 bits to 128 bits the IBM 1620 had floating point sizes from 4 decimal digits to 102 decimal digits (yes digits not bits).


What is the utility of floating point representation of numbers?

A floating point number is, in normal mathematical terms, a real number. It's of the form: 1.0, 64.369, -55.5555555, and so forth. It basically means that the number can have a number a digits after a decimal point.


How do you convert -24 into a decimal?

Do nothing.A decimal is a way of representing a number in such a way that the place value of each digit is ten times that of the digit to its right. A decimal representation does not require a decimal point. Zeros after the decimal point are inappropriate because they imply a greater degree of precision and there is no justification for that.


How do you write 50000 as a decimal?

Exactly as in the question.A decimal is a way of representing a number in such a way that the place value of each digit is ten times that of the digit to its right. A decimal representation does not require a decimal point. Zeros after the decimal point are inappropriate because they imply a greater degree of precision and there is no justification for that.Exactly as in the question.A decimal is a way of representing a number in such a way that the place value of each digit is ten times that of the digit to its right. A decimal representation does not require a decimal point. Zeros after the decimal point are inappropriate because they imply a greater degree of precision and there is no justification for that.Exactly as in the question.A decimal is a way of representing a number in such a way that the place value of each digit is ten times that of the digit to its right. A decimal representation does not require a decimal point. Zeros after the decimal point are inappropriate because they imply a greater degree of precision and there is no justification for that.Exactly as in the question.A decimal is a way of representing a number in such a way that the place value of each digit is ten times that of the digit to its right. A decimal representation does not require a decimal point. Zeros after the decimal point are inappropriate because they imply a greater degree of precision and there is no justification for that.


What is 50 cents in decimal?

50 cents, exactly as in the question. A decimal is a way of representing a number in such a way that the place value of each digit is ten times that of the digit to its right. A decimal representation does not require a decimal point. Zeros after the decimal point are inappropriate because they imply a greater degree of precision and there is no justification for that.


When you convert 78 to an decimal you get?

A decimal number is simply a way of representing a number in such a way that the place value of each digit is ten times that of the digit to its right. A decimal representation does not require a decimal point. So the required decimal representation is 78, exactly as in the question.


How do you Convert 1517 in to a decimal?

A decimal number is simply a way of representing a number in such a way that the place value of each digit is ten times that of the digit to its right. A decimal representation does not require a decimal point. So the required decimal representation is 1517, exactly as in the question.


How do you convert 9625 as a decimal?

A decimal number is simply a way of representing a number in such a way that the place value of each digit is ten times that of the digit to its right. A decimal representation does not require a decimal point. So the required decimal representation is 9625, exactly as in the question.


How do i convert 18 to a decimal?

A decimal number is simply a way of representing a number in such a way that the place value of each digit is ten times that of the digit to its right. A decimal representation does not require a decimal point. So the required decimal representation is 18, exactly as in the question.


What is 4.2 85.37?

It is the decimal representation of two numbers.It is the decimal representation of two numbers.It is the decimal representation of two numbers.It is the decimal representation of two numbers.


How do you write 70 cents as a decimal?

0.70


How do you convert 915 into a decimal using common core?

A decimal number is simply a way of representing a number in such a way that the place value of each digit is ten times that of the digit to its right. A decimal representation does not require a decimal point. So the required decimal representation is 915, exactly as in the question.