Add float encoding.