added conversion from float to decimal