To BCD

Encodes a decimal number as binary-coded decimal.

  • ID: to-bcd
  • Category: Data format
  • Aliases: binary coded decimal, bcd encode

Arguments

ArgumentTypeDefaultConstraints
Schemeoption"8 4 2 1"8 4 2 1, 7 4 2 1, 4 2 2 1, 2 4 2 1, 8 4 -2 -1, Excess-3, IBM 8 4 2 1
Packedbooleantrue
Signedbooleanfalse
Output formatoption"Nibbles"Nibbles, Bytes, Raw