I'm going to replace this with ```self._encode_float```. But fine otherwise.