Well, you just kind of do. Even though everything is quantised, the quantisation is so microscopic that we can very closely approximate entropy by a continuous function. This is a good time to mention that
Temperature and the Sackur–Tetrode Equation