# 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" />
    </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 ## Implementations The following XSLT processors support `math:constant`: 4XSLT, from 4Suite. (version 0.12.0a3) libxslt from Daniel Veillard et al. (version 1.0.19) Implementations of `math:constant` are available in the following languages: XSLT Template (by James Fuller) Javascript (by James Fuller) EXSLT Function (by James Fuller)

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