Esempi
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.
Input
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
- Endianness
Big Endian- Dimensione
Float (4 bytes)- Delimitatore
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.
Input
-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
- Endianness
Little Endian- Dimensione
Float (4 bytes)- Delimitatore
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.
Input
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
- Endianness
Big Endian- Dimensione
Double (8 bytes)- Delimitatore
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.
Input
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
- Endianness
Little Endian- Dimensione
Double (8 bytes)- Delimitatore
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.
Input
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
- Endianness
Big Endian- Dimensione
Float (4 bytes)- Delimitatore
Space
From Float (Big Endian, 4 bytes): 0.5
Input
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
- Endianness
Big Endian- Dimensione
Float (4 bytes)- Delimitatore
Space
From Float (Big Endian, 8 bytes): 0.5
Input
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
- Endianness
Big Endian- Dimensione
Double (8 bytes)- Delimitatore
Space
From Float (Little Endian, 4 bytes): 0.5
Input
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
- Endianness
Little Endian- Dimensione
Float (4 bytes)- Delimitatore
Space
From Float (Little Endian, 8 bytes): 0.5
Input
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
- Endianness
Little Endian- Dimensione
Double (8 bytes)- Delimitatore
Space