EN
For a real càdlàg function f and a positive constant c we find another càdlàg function which has the smallest total variation among all functions uniformly approximating f with accuracy c/2. The solution is expressed in terms of truncated variation, upward truncated variation and downward truncated variation introduced in earlier work of the author. They are always finite even if the total variation of f is infinite, and they may be viewed as a generalisation of the Hahn-Jordan decomposition for real càdlàg functions. We also present partial results for more general functions.