= Reduction modulo one
{title2=$x\longmapsto x-\lfloor x\rfloor$}
= Modulo one
{synonym}
For a <real number> $x$, its <reduction modulo one> is its <fractional part>
$$
\{x\}=x-\lfloor x\rfloor\in[0,1).
$$
The <floor function> is used, including at negative inputs: $-1.2-\lfloor-1.2\rfloor=-1.2-(-2)=0.8$. Truncating toward zero would instead give $-0.2$, outside the required interval.
\Image[/reduction-modulo-one-sawtooth.png]
{title=The <fractional part> $x-\lfloor x\rfloor$ lies in $[0,1)$ even for <negative numbers>}
{description=Filled points at <integers> have value zero; open points show the excluded limiting value one. The highlighted point is $x=-1.2$, whose <fractional part> is $0.8$.}
Two <real numbers> have the same <fractional part> exactly when their difference is an <integer>. Thus reduction chooses representatives for the <quotient group> $\mathbb R/\mathbb Z$, the <circle group>. Applied to two coordinates, it selects representatives in $[0,1)^2$ for a <torus>, obtained from a closed unit square by identifying opposite edges.
Back to article page