Improved precision encoding support for float32 and float64

Adjustment to sprintf format to better handle more precise float values, as noted in #196