編碼為 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)