The fractional part function, denoted as f(x) = {x}, returns the non-integer part of a real number. Mathematically, it is expressed as: {x} = x - ⌊x⌋, where ⌊x⌋ is the greatest integer less than or equal to x.
The fractional part function graph is made up of repeating straight-line segments from 0 to just below 1. Each segment starts from 0 (excluded) and increases linearly to just below 1 (included), then drops back to 0 at the next integer.
The function accepts any real number as input. Domain: (-∞, ∞)
Its range is the half-open interval [0, 1), meaning it includes 0 but excludes 1. Range: [0, 1)
The signum function, written as f(x) = sgn(x), returns the sign of a real number. Its definition is as follows:
The graph of the signum function consists of three distinct constant segments: It forms a flat line at y = -1 when x is negative, includes the point (0, 0), and creates another flat line at y = 1 for positive x-values.
The function is defined for all real numbers. Domain: (-∞, ∞)
The output is limited to three values only: -1, 0, and 1. The set of outputs is {-1, 0, 1}
The fractional part and signum functions each serve specific purposes in mathematics. The fractional part function isolates the decimal portion of a number, while the signum function identifies the sign of a value. Their graphs help visualize these behaviors clearly—especially the periodic nature of {x} and the step-like behavior of sgn(x).