+ Start a Discussion

Constant for Pi?

Is there a constant for Pi that I just cant find? Its easy enough to define a Double with a pre-defined value in it, but I would assume that there was something in Math for it.
Our dev team couldn't find 'Pi' in the documentation, so we ended up defining it as a double as you suggest.  It's been working for us so far.  :)

You could always use 2*asin(1) if you don't feel like figuring out where a "static final PI" should be declared :)