1
1
123qwe2015-11-02 20:40:05
Programming
123qwe, 2015-11-02 20:40:05

How is a fractional number represented in binary?

What is up, programmer.
I ask for an explanation for dummies, how a fractional number is represented, for example ( 41.06 ) in the binary system.
Do not throw off links to articles from the wiki, etc., I did not find the answer there.
What confuses me is that negative degrees are needed for this.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
ManWithBear, 2015-11-02
@Yonghwa

And what confuses you with a negative degree?
UPD. And yes, the wiki describes the process in great detail and with examples.
UPD2. In that case, you have no understanding of the negative degree. In short, then:
a^-x = 1/a^x

I
Ivanq, 2015-11-02
@Ivanq

+---------------------------------------+
|           значение (32 бита)          |
+-----------------------+---------------+
|   число (24 бита)     |степень (8 бит)|
+-----------------------+---------------+

For example, the number is 21.1. 1. We remove the point - the number 211, the degree - -1 (
10 ^ -1 \u003d 0.1) 2.
The number 211 - we translate into binary form: 000000000000000011010011
3. The number -1 is translated into binary form: order) And it turns out 54144 = 21.1 :) 10000000

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question