Displaying decimal places does not always seem to work