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)