next up previous contents
Next: Decimal integers to signed Up: Conversion to and from Previous: Conversion to and from

Decimal to Signed Binary

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.


Martin Escardo