In this paper we introduce the concept of surgery. This conceptensures that almost all discontinuous functions can be made to be continuous without redefining their support. In spite of this, it preserves the properties of the original function. Consequently we are able to get a handle on the number of points of discontinuities on a finite interval by having an information on the norm of the repaired function and vice-versa.