Converting 29 and 0.7 to IEEE single precision floating point

In summary, the conversation is about difficulty in converting 29 and 0.7 to IEEE single precision floating point. The speaker is struggling with getting the mantissa value for 29 and is unsure of how to represent 0.7 as a product of a power of 2. They are not writing a computer program, just need to convert the numbers. Another person suggests a link that may provide helpful information.
  • #1
KataKoniK
1,347
0
I am having difficulty in converting 29 and 0.7 to IEEE single precision floating point.

For 29,

I represent 29 as a product of a power of 2 using 58/4 * 21.
However, I am having trouble getting the mantissa value because 58/4 is 14.5, and I need something in the format of 1.[numbers]. Any help would be great, thanks.

For 0.7,

I do not know how I would represent 0.7 as a product of a power of 2 because there is no exact binary number representation for 0.7. Any help would be great, thanks.
 
Physics news on Phys.org
  • #2
are you trying to write a computer program to do this or just need to convert
 
  • #3
Hi,

I just need to convert it. Not writing a program.
 
  • #5
However, I am having trouble getting the mantissa value because 58/4 is 14.5, and I need something in the format of 1.[numbers]. Any help would be great, thanks.

Isn't 14.5 = 1.[numbers] x101
 
  • #6
Integral said:
Isn't 14.5 = 1.[numbers] x101

Yes, but how would you represent that in mantissa?


I'll check out that link mathmike, thanks.
 

What is IEEE single precision floating point format?

IEEE single precision floating point format is a standardized way of representing real numbers in computers. It is used to store and manipulate numbers that require a large range of values and high precision.

What is the format for representing numbers in IEEE single precision floating point?

The format for representing numbers in IEEE single precision floating point is a 32-bit binary format. The first bit is the sign bit, followed by 8 bits for the exponent, and 23 bits for the significand or mantissa.

How is 29 represented in IEEE single precision floating point?

In IEEE single precision floating point, 29 is represented as 0 10000010 11000000000000000000000. The first bit 0 represents a positive number, the exponent 10000010 represents 130, and the significand 11000000000000000000000 represents 1.75. Therefore, the number is 1.75 x 2^130 which is equivalent to 29.

How is 0.7 represented in IEEE single precision floating point?

In IEEE single precision floating point, 0.7 is represented as 0 01111111 01110011001100110011001. The first bit 0 represents a positive number, the exponent 01111111 represents 127, and the significand 01110011001100110011001 represents 1.099609375. Therefore, the number is 1.099609375 x 2^127 which is equivalent to 0.7.

What is the process for converting numbers to IEEE single precision floating point format?

The process for converting numbers to IEEE single precision floating point format involves breaking the number into three parts: the sign, the exponent, and the significand. The sign is determined by the first bit, the exponent is calculated by adding a bias of 127 to the power of 2, and the significand is calculated by converting the decimal part of the number into binary. These three parts are then combined to form the 32-bit binary representation of the number.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
9
Views
954
Replies
4
Views
907
  • Engineering and Comp Sci Homework Help
Replies
10
Views
3K
Replies
6
Views
9K
  • Computing and Technology
Replies
4
Views
743
  • Engineering and Comp Sci Homework Help
Replies
8
Views
5K
  • Engineering and Comp Sci Homework Help
Replies
14
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
5
Views
5K
  • Engineering and Comp Sci Homework Help
Replies
16
Views
2K
Back
Top