The algorithm used here is fairly straightforward conversion from decimal to binary, and is described in [17]. In order to convert the input, we separate the integer and fractional parts of the input, convert each one individually, and then combine them using addition. The decimal inputs are assumed to be of finite length.