The Significant Digit Law in Statistical Physics