Monotone functions and discontinuities