12 lines
439 B
Plaintext
12 lines
439 B
Plaintext
If the denominator to a division or modulo operation is zero it would result in a fatal error.
|
|
|
|
When working with ``double`` or ``float``, no fatal error will be raised, but it will lead to unusual result and should be avoided anyway.
|
|
|
|
This rule supports primitive ``int``, ``long``, ``double``, ``float`` as well as ``BigDecimal`` and ``BigInteger``.
|
|
|
|
include::../noncompliant.adoc[]
|
|
|
|
include::../compliant.adoc[]
|
|
|
|
include::../see.adoc[]
|