예제
Store 1 -2 0.5 as IEEE 754 bytes
Store 1 -2 0.5 as IEEE 754 bytes. The input is a small public learning fixture; it contains no private production data.
입력
1 -2 0.5Expected answer
Hexadecimal bytes| Offset | Hex bytes | ASCII |
|---|---|---|
| 00000000 | 3f 80 00 00 c0 00 00 00 3f 00 00 00 | ?.......?... |
3f 80 00 00 c0 00 00 00 3f 00 00 00
- 엔디안
Big Endian- 크기
Float (4 bytes)- 구분자
Space
Store -0.0 3.5 as IEEE 754 bytes
Store -0.0 3.5 as IEEE 754 bytes. The input is a small public learning fixture; it contains no private production data.
입력
-0.0 3.5Expected answer
Hexadecimal bytes| Offset | Hex bytes | ASCII |
|---|---|---|
| 00000000 | 00 00 00 80 00 00 60 40 | ......`@ |
00 00 00 80 00 00 60 40
- 엔디안
Little Endian- 크기
Float (4 bytes)- 구분자
Space
Store 1.5 -2.25 as IEEE 754 bytes
Store 1.5 -2.25 as IEEE 754 bytes. The input is a small public learning fixture; it contains no private production data.
입력
1.5 -2.25Expected answer
Hexadecimal bytes| Offset | Hex bytes | ASCII |
|---|---|---|
| 00000000 | 3f f8 00 00 00 00 00 00 c0 02 00 00 00 00 00 00 | ?............... |
3f f8 00 00 00 00 00 00 c0 02 00 00 00 00 00 00
- 엔디안
Big Endian- 크기
Double (8 bytes)- 구분자
Space
Store 0 1000 as IEEE 754 bytes
Store 0 1000 as IEEE 754 bytes. The input is a small public learning fixture; it contains no private production data.
입력
0 1000Expected answer
Hexadecimal bytes| Offset | Hex bytes | ASCII |
|---|---|---|
| 00000000 | 00 00 00 00 00 00 00 00 00 00 00 00 00 40 8f 40 | .............@.@ |
00 00 00 00 00 00 00 00 00 00 00 00 00 40 8f 40
- 엔디안
Little Endian- 크기
Double (8 bytes)- 구분자
Space
Store 0.125 -16 as IEEE 754 bytes
Store 0.125 -16 as IEEE 754 bytes. The input is a small public learning fixture; it contains no private production data.
입력
0.125 -16Expected answer
Hexadecimal bytes| Offset | Hex bytes | ASCII |
|---|---|---|
| 00000000 | 3e 00 00 00 c1 80 00 00 | >....... |
3e 00 00 00 c1 80 00 00
- 엔디안
Big Endian- 크기
Float (4 bytes)- 구분자
Space
From Float (Big Endian, 4 bytes): 0.5
입력
0.5 0.5Expected answer
Hexadecimal bytes| Offset | Hex bytes | ASCII |
|---|---|---|
| 00000000 | 3f 00 00 00 3f 00 00 00 | ?...?... |
3f 00 00 00 3f 00 00 00
- 엔디안
Big Endian- 크기
Float (4 bytes)- 구분자
Space
From Float (Big Endian, 8 bytes): 0.5
입력
0.5 0.5Expected answer
Hexadecimal bytes| Offset | Hex bytes | ASCII |
|---|---|---|
| 00000000 | 3f e0 00 00 00 00 00 00 3f e0 00 00 00 00 00 00 | ?.......?....... |
3f e0 00 00 00 00 00 00 3f e0 00 00 00 00 00 00
- 엔디안
Big Endian- 크기
Double (8 bytes)- 구분자
Space
From Float (Little Endian, 4 bytes): 0.5
입력
0.5 0.5Expected answer
Hexadecimal bytes| Offset | Hex bytes | ASCII |
|---|---|---|
| 00000000 | 00 00 00 3f 00 00 00 3f | ...?...? |
00 00 00 3f 00 00 00 3f
- 엔디안
Little Endian- 크기
Float (4 bytes)- 구분자
Space
From Float (Little Endian, 8 bytes): 0.5
입력
0.5 0.5Expected answer
Hexadecimal bytes| Offset | Hex bytes | ASCII |
|---|---|---|
| 00000000 | 00 00 00 00 00 00 e0 3f 00 00 00 00 00 00 e0 3f | .......?.......? |
00 00 00 00 00 00 e0 3f 00 00 00 00 00 00 e0 3f
- 엔디안
Little Endian- 크기
Double (8 bytes)- 구분자
Space