rspec/rules/S2197/description.adoc

2 lines
232 B
Plaintext
Raw Normal View History

2020-06-30 12:48:07 +02:00
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.