Open rebolbot opened 14 years ago
Submitted by: Ladislav
Yes, right, the MOD function works correctly only when the second value is positive.
Submitted by: BrianH
Technically, modulus is only defined for positive numbers. Most programming languages extend it to negative numbers as well. Does the behavior of MOD match the behavior that most of these languages follow in this case? If so, we can declare this to be the correct behavior.
Submitted by: PeterWood
Mod returns negative value where both supplied arguments are negative. The absolute value appears to be incorrect.
CC - Data [ Version: alpha 94 Type: Bug Platform: All Category: Mezzanine Reproduce: Always Fixed-in:none ]