EXSLT - math:constant

Implementer Page: math.constant.html
Function Package: math.constant.zip

Function Syntax

number math:constant(string, number)

Template Syntax

<xsl:call-template name="math:constant">
   <xsl:with-param name="name" select="string" />
   <xsl:with-param name="precision" select="number" />

The math:constant function returns the specified constant to a set precision. The possible constants are:

  • PI
  • E
  • SQRRT2
  • LN2
  • LN10
  • LOG2E
  • SQRT1_2


The following XSLT processors support math:constant:

Implementations of math:constant are available in the following languages:

http://www.exslt.org/math/functions/constant/index.html last modified 2002-11-12