fixed to decimal function