# EXSLT - math:constant - Implementer Page

Version: 1 Status: implemented User Page: index.html XML Definition: math.constant.xml 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" />
    </xsl:call-template>
The `math:constant` function returns the specified constant to a set precision. The possible constants are: PI E SQRRT2 LN2 LN10 LOG2E SQRT1_2 An implementation of this extension function in the EXSLT math namespace must conform to the behaviour described in this document. ## Implementations Built-in support for `math:constant` is available in the following XSLT processors:
Processor | Processor Version | Implemented Version
--- | --- | ---
4XSLT, from 4Suite. | 0.12.0a3 | 1
libxslt from Daniel Veillard et al. | 1.0.19 | 1
The following implementations of `math:constant` are available:
Language | Implemented Version | Creator | Date | Download
--- | --- | --- | --- | ---
XSLT Template | 1 | James Fuller | 2001-05-23 | math.constant.template.xsl
Javascript | 1 | James Fuller | 2001-05-23 | math.constant.js
EXSLT Function | 1 | James Fuller | 2001-05-23 | math.constant.function.xsl
## Change History Submitted: 2001-05-23 Creator: James Fuller(http://www.ruminate.co.uk) Returns a variety of standard mathematical constants.
Version | Modified | By | Details
--- | --- | --- | ---
1.1 | 2002-08-21 | Craig Stewart | Added 4XSLT and libxslt implementation to the list.
1.2 | 2002-11-12 | Craig Stewart | Updated 4XSLT version to 0.12.0a3.

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