Inspectopedia Help

Constant call to 'Math'

Reports calls to java.lang.Math or java.lang.StrictMath methods that can be replaced with simple compile-time constants.

Example:

double v = Math.sin(0.0);

After the quick-fix is applied:

double v = 0.0;

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Java, 233.SNAPSHOT

Last modified: 13 July 2023