Moved float/decimal conversion to separate module.