CRR0024 - Increase precision with a built-in constant or call
This analyzer detects the usage of numerical literals that can be replaced with a more precise built-in constant or function call. For instance, this analyzer will detect numeric literals that are close to the 𝜋 value.
Consider changing the literal to the Math.Pi constant. This will improve the code readability and the method’s precision.
Note
In the example given above, you can also apply the Convert to Math.Pow call refactoring.