浮動小数点からデコード

対応する標準に従って “浮動小数点からデコード” で入力をデコードします。

入力: テキスト結果: バイナリのバイト列

テキスト入力

実行すると結果が表示されます

使用例

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.5

Expected answer

Hexadecimal bytes
OffsetHex bytesASCII
000000003f 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.5

Expected answer

Hexadecimal bytes
OffsetHex bytesASCII
0000000000 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.25

Expected answer

Hexadecimal bytes
OffsetHex bytesASCII
000000003f 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 1000

Expected answer

Hexadecimal bytes
OffsetHex bytesASCII
0000000000 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 -16

Expected answer

Hexadecimal bytes
OffsetHex bytesASCII
000000003e 00 00 00 c1 80 00 00>.......
エンディアン
Big Endian
サイズ
Float (4 bytes)
区切り文字
Space
From Float (Big Endian, 4 bytes): 0.5

入力

0.5 0.5

Expected answer

Hexadecimal bytes
OffsetHex bytesASCII
000000003f 00 00 00 3f 00 00 00?...?...
エンディアン
Big Endian
サイズ
Float (4 bytes)
区切り文字
Space
From Float (Big Endian, 8 bytes): 0.5

入力

0.5 0.5

Expected answer

Hexadecimal bytes
OffsetHex bytesASCII
000000003f 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.5

Expected answer

Hexadecimal bytes
OffsetHex bytesASCII
0000000000 00 00 3f 00 00 00 3f...?...?
エンディアン
Little Endian
サイズ
Float (4 bytes)
区切り文字
Space
From Float (Little Endian, 8 bytes): 0.5

入力

0.5 0.5

Expected answer

Hexadecimal bytes
OffsetHex bytesASCII
0000000000 00 00 00 00 00 e0 3f 00 00 00 00 00 00 e0 3f.......?.......?
エンディアン
Little Endian
サイズ
Double (8 bytes)
区切り文字
Space

関連ツール

データ形式

操作の参考資料

元の技術文書を見る (English)