fix display of numbers depending on whether int or float