Alterna · учебный материал

Number representation in memory

Chapter 30 : Direct, inverse, additional codes for wholes. IEE 754 single/double. Calculators, visualizers, EEG 14 bank.

Что в этом материале

Содержание и основные понятия

Back to the table of contents
Alterna · Chapter 30 · page 30.
Number representation in memory
How a computer stores negative numbers, fractions, very large and very small values.
Wholes are stored as a set of fixed length bits.
additional code
II. Material in format
IEEE 754
as a mantiss × 2
I don't know what to do.
.
GEF
PIF
EGE No. 14
00
Relationship to previous chapters
On what this chapter is built
B
Chapter 14 (Number systems)
We've learned to translate numbers between the binary, eight, and sixteen systems -- these skills are needed here to understand the codes.
B
Chapter 29 (Algebra logic)
We've been working with logical operations -- and, or, not, XOR -- here we're going to go to the gland: how a computer stores numbers in these very bits -- whole, negative, fractional.
Knowledge chain:
The twin system is the Bita code of the whole IEEE 754 number.
G.14: Numeral systems
13₁₀ = 1101₂
Diplomatic — The Basis of Coding
GL.28.1: Direct code
−13 = 11110011₂
Negative in supplementary code
G.28.2: IEEE 754
6.25 = 0 10000001 1001…
Material: sign, order, mantis.
01
Computer memory map
How different types of data occupy bytes in memory
Computer memory: bytes and data types
0x00
0x01
0x02
0x04
0x08
bool
1 byte = 8 bits
int8
−128..127
int16
2 bytes = -32768.32767
int32 / float32
4 bytes: int32=2.1mrd, float32~3.4°1038
int64 / double (float64)
8 bytes: int64= * 9.2 * 1018, double~1.8 *10308
growing.
Accuracy
and range
02
Range Visualizer
Change the volume and type -- look at how the range changes.
📐
Ranges of multiple types
N-bit range:
8
Type:
Move the slide.
min
max
0
03
Additional code calculator
🔢
Step algorithm: number \ additional code
Decimal (-128.127)
Enter the number and press "Cut it up."
Kick the bats to change the result will be updated:
04
IEEE 754
Float (single) and double presentation standard
The material number shall be stored in the form of:
(−1)
s
× 1.M × 2
(E−bias)
where s is the sign, M is the mantiss, E is the displaced order.
Format
Beaths
Sign s
Order E
Mantissa M
Bias
Accuracy
Range
single (float32)
32
1
8
23
127
~7 digits
~10
±38
double (float64)
64
1
11
52
1023
~15 digits
~10
±308
05
IEEE 754 single
🔬
Number of IEEE 754 single (32 bits) with colour markings
Decimal
Sign
Order (8 bits)
Mantiss (23 bits)
Введи число и нажми «Перевести».
06
Heading route
30.1 Presentation of whole
- three codes in detail + overcrowding simulator in int8/uint8 + ranges.
30.2 IEEE 754
== sync, corrected by elderman == @elder_man
30.3 Memory and Cache
==History===L1==The L1/L2/L3 Cache hierarchy, the direction-apped cache, and the L2/L3 simulation.
30.4 Workshop
- OGE/EGD 14 with reviews, 10 of 50 randoms.
30.5 Poligon examination
- Quest 800 XP + Test 10 min + EGE Interactor.

Structural map of textbooks