Support encoding of any float value