1. A method, comprising: obtaining a binary coded decimal (BCD) significand corresponding to a plurality of decimal digits; generating, by a BCD/binary hardware converter and based on the BCD significand, a plurality of binary vectors corresponding to the plurality of decimal digits by: selecting, using a first multiplexer, a first vector component of a first binary vector based on a decimal digit having a weight of w in the BCD significand; and selecting, using a second multiplexer, a second vector component of the first binary vector based on the decimal digit having the weight of w, wherein the first multiplexer and the second multiplexer input at least a binary representation of decimal 1 w, a shifted version of the binary representation of decimal 1 w, a binary representation of decimal 3 w, and a shifted version of the binar representation of decimal 3 w; and calculating, by the BCD/binary hardware converter, a binary output by summing the plurality of binary vectors.