extracts the fractional part of , and is often written 1. Subtracting the floor function , the largest integer not exceeding , removes the integer part and leaves the fraction behind.
For a negative number the floor function returns the integer below, so the result is always non-negative. That the fractional part of is sits a little oddly with intuition, so it is worth noting.
The domain is all real numbers and the range is . The value never reaches .
The function has period , with . Over each interval between consecutive integers it is a straight line of slope .
It starts at when , climbs straight up, and approaches just before the next integer. That shape repeating is why the graph is called a sawtooth wave.
The function is discontinuous at every integer. Approaching an integer from the left the value tends to , but at it is reset to . The jump is therefore : the curve falls back to the floor just before it would reach the ceiling. Each step includes its left end, where the value is , and excludes its right end.
That the floor function is right-continuous carries over directly to this one.
At non-integer points the function is given by the following series.
The constant term is the average height over one period. Unlike a square wave this one contains even harmonics as well, and the coefficients decay as . Since the waveform has jumps the convergence is slow, and partial sums show the Gibbs phenomenon.
Containing every harmonic gives it a bright timbre, which makes it a favorite starting point for subtractive synthesis, where a filter carves the sound out.