The convention is that 0 log 2 ⁡ ⁡ 0 = 0 , since an event with probability zero should not contribute to the entropy. This value is an extended real number (that is in [0, ∞]) and this is clearly a unitary invariant of S.