rspec/rules/S2197/description.adoc
2020-06-30 17:16:12 +02:00

2 lines
232 B
Plaintext

When the modulus of a negative number is calculated, the result will either be negative or zero. Thus, comparing the modulus of a variable for equality with a positive number (or a negative one) could result in unexpected results.