Search code examples
javamathconstantspi

What are the differences between Math.(E|PI) and those of StrictMath?


I just found that java.lang.StrictMath has E and PI which each is also available in java.lang.Math.

Are there any differences between them?

I check the source(Math, StrictMath) and found they are the same values.


Solution

  • No, of course not. They're constants, you don't need to store them with different levels of precision.