#21 Modulus operator broken for negatives

v2.0x
closed
Klaus Post
Internals (76)
5
2002-10-14
2002-10-11
Anonymous
No

The modulus operator in Avisynth 2.0.6 doesn't work
quite right for negative values - the result is still
negative. For example, (-13 % 5) == -3

Discussion

  • Klaus Post
    Klaus Post
    2002-10-14

    • assigned_to: nobody --> sh0dan
     
  • Klaus Post
    Klaus Post
    2002-10-14

    Logged In: YES
    user_id=578300

    Fixed, and put in CVS.
    Also added abs(int) and fabs(float) while at it.

     
  • Klaus Post
    Klaus Post
    2002-10-14

    • status: open --> pending
     
  • Klaus Post
    Klaus Post
    2002-10-14

    • status: pending --> closed