modulo
Modulo with result in \([0,m[\) interval.
Namespace: dsp
Prototype
T modulo(T x, T m)
Description
Contrary to the standard function fmod(x, m)
, which returns a value between \(-m\) and \(m\), this function returns a value between \(0\) and \(m\):