Question: Section B - Floating point numbers in binary In the last section you had a reminder about Standard Index form. In this seminar, we are

Section B - Floating point numbers in binary
In the last section you had a reminder about Standard Index form. In this seminar, we are going to use both Standard Index form and Binary at the same time. Life doesn't get better than this.
First, how does binary handle fractions?
Columns to the right of the decimal point halve each time:
128,64,32,16,8,4,2,1,12,14,18
So 3.510 is the same as 11.12.
What is 4.25 is in binary?
How about 5.7510?
This is just a side-issue. You already know that 13 is the same as 0.33333333 in decimal. It requires a recurring number. In binary, this happens with a tenth. One tenth is 0.1 in decimals. That's easy. In binary it is 0.000110011001100110011001100110011001100110011dots. etc.
Now, we are ready to see how a computer stores a floating-point number. Admittedly, this is fairly obscure knowledge. Most computer scientists have a vague idea of how floating-point numbers work, but many of them either forget the details or were never taught them. Personally, I like to know this stuff and some of you will, too. But don't panic if you are finding this hard - just learn what you can.
Binary floating-point numbers can be written using scientific notation. Some examples:
1.00112101,1.1211
A "single-precision" floating point number uses 32 bits.
How many bytes is this?
Section B - Floating point numbers in binary In

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!