Over the past few decades, astronomers have measured the temperature fluctuations in the CMB very accurately. The results have shown to a high degree of accuracy that the density of the Universe is such that it expands in every direction without any positive or negative curvature, so the universe is flat.