Improved precision encoding support for float32 and float64