[asterisk-dev] Music on hold deafens in 1.4b3
John Lange
j.lange at epic.ca
Fri Nov 3 13:42:56 MST 2006
Strangely thats what I thought also but not according to Wikipedia:
Modulo is the remainder (typically represented with % operator in
programming languages):
http://en.wikipedia.org/wiki/Modulo_operation
Modulus (in mathematics) is actually the same as absolute value:
http://en.wikipedia.org/wiki/Absolute_value
But anyhow, assuming the meaning in C is the remainder, the code should
work so thats not the problem.
John
On Fri, 2006-11-03 at 14:23 -0600, Tilghman Lesher wrote:
> On Friday 03 November 2006 13:35, John Lange wrote:
> > state->pos %= state->class->total_files;
> >
> > ----
> >
> > Isn't that just setting state->pos equal to the abs() number of files
> > every time? I'm reading %= as modulus which is the absolute value
> > correct?
>
> Modulus == divide by, and take the remainder
More information about the asterisk-dev
mailing list