RE: One more technical FAQ about MHEG-5 IS

Xavier MARIE (xavier.marie@cril-ing.fr)
Wed, 19 Mar 1997 16:33:09 +-100

Emmanuel,
>>If I remember well what I learned at school and what is returned by my
scientific calculator (HP28S), the result shall be 1.
I think that arithmetics specify that :
(a MOD b) shall be within the range [0, (b-1)]

but if we follow the equality, we got :
a DIV b = -1 so -1 * 3 + (a MOD b) = -5
that means that (a MOD b) = -2
I know that Macromedia Director 5 also gives this result but that doesn't
seem correct to me.

I would like to have the feeling of the MHEG community about what is correct.
Is the equality erroneous in the standard or should it work like that in
all MHEG engines ?
<<
So MHEG and Director give the same result (but you don't agree with it),
right?
>From what I remember REMainder and MODulo are two different things.
And what you refer to is the remainder of the integer division.

>>By the way, if the MHEG User Group list is opened to everyone interested
in, could the administrator add me to the list or if someone could tell me
how to subscribe...
<<

Send a mail to the list (saying you wish to subscribe, giving your
address) or to hofrichter@fokus.gmd.de

Xavier Marie