[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MOD operator



Theo Brauers wrote:

> I was wondering if the result of the MOD operator in IDL changed
> from previous versions (4.x, 5.0) to the current version (5.3.1).
> Now the output is:
> 
> IDL> PRINT, (FINDGEN(8)-4.) MOD 3
>      -1.00000     0.000000     -2.00000     -1.00000     0.000000
>       1.00000      2.00000     0.000000

I get the same output with IDL 4.0.1, 5.0, 5.1 and 5.2.1 on my Sun
running Solaris (except for the second result, which is -0.0 instead of
0.0).

        Alex
-- 
  Alex Schuster     Wonko@weird.cologne.de          PGP Key available
                    alex@pet.mpin-koeln.mpg.de