sentence: in computing and electronic systems , binary-coded decimal ( bcd ) is a class of binary encodings of decimal numbers where each decimal digit is represented by a fixed number of bit , usually four or eight , although other sizes ( such as six bits ) have been used historically .