edX: CS, Python. Algorithm for convertion of decimal to float.