Correcting sprintf formatting for float value.