الترميز كرقم مزدوج عشري (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)