Truncation errors associated with the virial equation