IEEE 754 Floating Point Numbers Flashcards

1
Q

what does normalised mean

A

one number before the radox point

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what would a binary fraction look like after removing the hidden bit

A

.101001`(whatever the fraction was)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is the fixed bias for IEE754 numbers

A

127

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

do you add or subtract the exponent from the bias

A

add

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

if the sign bit is set to 1 this means that the fraction is

A

negative

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

if the sign bit is set to 0 this means that the fraction is

A

positive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

if all the exponent and fraction bits are set to 0, what number is being represented

A

0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

if the exponent bits are all set to 1 and the fraction bits are all set to 0 what number is being represented

A

infinity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

if the exponent bits are all set to 1 and the fraction bits are anything but all 0, what number is being represented

A

not a number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is the bias for double precision, 64 bit ieee 754 numbers

A

1023

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

is 32 bit precision sufficient

A

yes, more than enough for the decisions needed in AI and machine learning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

to add two floating points together, what needs to be the same

A

the exponents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

if the two exponents are different when adding floating point numbers, how do you change this so that theyre equal

A

shift the smaller one to the right until its exponent is the same as the larger one

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

after a decimal point what does the power become

A

minus numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

how to convert from decimal to binary

A

do the whole number part as normal

multiply the fraction part by 2 continuously until there is nothing after the decimal point ie a whole number, read the whole parts downwards

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

general scientific notation in binary

A

f x 2^e

f must be at least 1

17
Q

what does the sign bit store in IEEE 754

A

the sign of the value

18
Q

what does the exponent bit store in IEE 754

A

The exponent

19
Q

how many bits used to store the exponent

A

8

20
Q

how many bits are used to store the fraction

A

23