DecodeBox
Search
K
Guides
SDK Reference
Operations
Playgrounds
Operations Explorer
Auto Detection Lab
Encoding & Decoding Lab
Open DecodeBox
Theme
Menu
ON THIS PAGE
#
To BCD
Encodes a decimal number as binary-coded decimal.
ID:
to-bcd
Category: Data format
Aliases: binary coded decimal, bcd encode
#
Arguments
Argument
Type
Default
Constraints
Scheme
option
"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
Packed
boolean
true
Signed
boolean
false
Output format
option
"Nibbles"
Nibbles, Bytes, Raw