a discrete quantity. How do you take a derivative of a discrete quantity?" Well, you just kind of do. Even though everything is quantised, the quantisation is so microscopic that we can very closely approximate
Temperature and the Sackur–Tetrode Equation