My highschool teacher has informally told us about what continuity is and used step functions as an example of a discontinuous function.
The Wikipedia page for it links to a lot of other kind of step functions, such as the Heaviside step function.
What are some uses of these step functions to mathematicians at higher levels (or even in highschool)?