Jump to content

Floating-Point Notation

Featured Replies

  • Author

I need an example.


01101011.

Knowing our mantissa we know where our decimal goes:

.1011

By our exponent we turn it into 010 from our original number (110). By this number we have that we move the decimal positive 2 to the right.

My question is why is it "positive"?

 

Thus our answer would be 10.11 which represents 2 and 3/4ths.

 

10111100

Knowing our mantissa we know where our decimal goes:

.1100

By our exponent we turn it into 101 from our original number (011). By this number we have that we move the decimal negative 1 to the left.

My question is how does 101 represent the value (-1)

 

I can understand the first exponent representing 2 because 010 is 2.

But I can't understand the second exponent where 101 becomes negative one when to me it looks like a positive 5.

 

Can someone help me here?

I don't grasp what "in floating-point notation" shall mean. There are many floating-point formats, Ieee 754 being only one of them, and I know none of them on 8 bits.

 

Among the many possibilities:

- The mantissa can be coded as 2's complement or 1's. Same for the exponent. Both conventions do exist.

- The exponent can code a power of 2 or, as Ibm did long ago, a power of 16.

- Some formats store the leading 1 that follows the decimal point, others don't.

- The size can vay. Fps had floating numbers of 38 bits. Intel's Mmx computed on 80 bits, Pr1me on 128 bits.

- Some pocket calculators and some microcontrollers had the mantissa in Bcd, the exponent as a power of 10.

- The exponent can be at the beginning of the field or at the end, the signs anywhere, the bytes in reverse order.

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.