The aim of this note is to define the total value of the {Riemann} integral that can be used to generalize the well-known Montgomery identity.