"The sun has a density of over a hundred times that of water" = "The sun has a density of over a hundred times the density of water"
(You wouldn't normally use the second sentence; it seems unnecessarily repetitious -- which is, of course, where "that" comes to the rescue!)