function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VintaraVintara 

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.
savvyboardersavvyboarder
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.  :)
mulvelingmulveling

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