Positive and negative parts of functions