In this paper,we show how to recover the low-temperature and high-density information of ideal quantum gases from the high-temperature and low-density approximation by the Padé approximant.The virial expansion is a high-temperature and low-density expansion and in practice,often,only the first several virial coefficients can be obtained.For Bose gases,we determine the BEC phase transition from a truncated virial expansion.For Fermi gases,we recover the low-temperature and high-density result from the virial expansion.