Changing the encoder output to float type