math:pi
Returns an approximation to the mathematical constant π.
Signature
math:pi() as xs:double
Properties
This function is deterministic, context-independent, and focus-independent.
Rules
This function returns the xs:double
value whose lexical representation is
3.141592653589793e0
Examples
The expression 2*math:pi()
returns 6.283185307179586e0
.
The expression 60 * (math:pi() div 180)
converts an angle of 60 degrees
to radians.