<xslTutorial creator="nicmila@idoox.com">
<index keywords='round() floor() ceiling()'/>
<description>Functions ceilng(), floor() and round() transform floating point numbers into integers in the specified way.</description>
<xmlSource id="id1">
<number>6</number>
<number>3.8</number>
<number>1.234</number>
<number>-6</number>
<number>-3.8</number>
<number>-1.234</number>
</xmlSource>
<attValues>
<value match=''></value>
</attValues>
<xslStylesheet id="id2">
<xsl:template match="/">
<TABLE border="1">
<TR><TH>number</TH><TH>floor</TH><TH>ceiling</TH><TH>round</TH></TR>
<xsl:for-each select="//number">
<TR>
<TD><xsl:value-of select="."/></TD>
<TD><xsl:value-of select="floor(.)"/></TD>
<TD><xsl:value-of select="ceiling(.)"/></TD>
<TD><xsl:value-of select="round(.)"/></TD>
</TR>
</xsl:for-each>
</TABLE>
</xsl:template>
</xslStylesheet>
</xslTutorial>