Display float/double values in an appropriate format