snap

fnT snap(T)(T x, T step) @trusted @safe nothrow @nogc

Returns x rounded to the nearest multiple of step.