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; and calculating, by the BCD/binary hardware converter, a binary output by summing the plurality of binary vectors.