Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_math
pi/0
Description
pi/0 is an Erlang function exported by "age_math" module.
Returns PI number with precision of 15 digits after the floating point.
The number π is a mathematical constant defined as the ratio of a circle's circumference to its diameter.
References
•trunc/2
Result
Value or Type
number()
Returns PI number with reasonable precision.
Code Sample
> age_math:pi(). 3.141592653589793