BCDとしてエンコード

対応する標準に従って “BCDとしてエンコード” で入力をエンコードします。

入力: 高精度の数値結果: テキスト

テキスト入力

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

使用例

A time readout in packed decimal

Represent a decimal number using one four-bit nibble per digit. Leading zeroes are not retained in numeric input.

入力

123456

Expected answer

0001 0010 0011 0100 0101 0110
スキーム
8 4 2 1
パック済み
On
署名済み
Off
出力形式
Nibbles
An inventory count

Represent a decimal number using one four-bit nibble per digit. Leading zeroes are not retained in numeric input.

入力

42

Expected answer

0100 0010
スキーム
8 4 2 1
パック済み
On
署名済み
Off
出力形式
Nibbles
A zero-prefixed identifier

Represent a decimal number using one four-bit nibble per digit. Leading zeroes are not retained in numeric input.

入力

00123

Expected answer

0001 0010 0011
スキーム
8 4 2 1
パック済み
On
署名済み
Off
出力形式
Nibbles
An all-nine counter boundary

Represent a decimal number using one four-bit nibble per digit. Leading zeroes are not retained in numeric input.

入力

9999

Expected answer

1001 1001 1001 1001
スキーム
8 4 2 1
パック済み
On
署名済み
Off
出力形式
Nibbles
A decimal price without the point

Represent a decimal number using one four-bit nibble per digit. Leading zeroes are not retained in numeric input.

入力

1299

Expected answer

0001 0010 1001 1001
スキーム
8 4 2 1
パック済み
On
署名済み
Off
出力形式
Nibbles
default 0

入力

0

Expected answer

0000
スキーム
8 4 2 1
パック済み
On
署名済み
Off
出力形式
Nibbles
packed, signed bytes

入力

1234567890

Expected answer

00000001 00100011 01000101 01100111 10001001 00001100
スキーム
8 4 2 1
パック済み
On
署名済み
On
出力形式
Bytes
packed, signed nibbles, 8 4 -2 -1

入力

-1234567890

Expected answer

0000 0111 0110 0101 0100 1011 1010 1001 1000 1111 0000 1101
スキーム
8 4 -2 -1
パック済み
On
署名済み
On
出力形式
Nibbles
unpacked nibbles

入力

1234567890

Expected answer

0000 0001 0000 0010 0000 0011 0000 0100 0000 0101 0000 0110 0000 0111 0000 1000 0000 1001 0000 0000
スキーム
8 4 2 1
パック済み
Off
署名済み
Off
出力形式
Nibbles

関連ツール

データ形式

操作の参考資料

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