다음을 통해 공유


ceiling 함수(XPath)

인수보다 작지 않은 가장 작은 정수를 반환합니다.

number ceiling(number)

예제

이 예제에서는 ceiling() 식을 보여 줍니다.

XML 파일

없음. XSLT 파일은 자신을 호출합니다.

XSLT 파일(ceiling.xsl)

<?xml version='1.0'?>
<?xml-stylesheet type="text/xsl" href="ceiling.xsl"?>
<xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
   <p/>ceiling(2.5) = 
      <xsl:value-of select='ceiling(2.5)'/>
   <p/>ceiling(-2.3) = 
      <xsl:value-of select='ceiling(-2.3)'/>
   <p/>ceiling(4) = 
      <xsl:value-of select='ceiling(4)'/>
</xsl:template>

</xsl:stylesheet>

ms256087.collapse_all(ko-kr,VS.120).gif서식이 지정된 출력

ceiling(2.5) = 3

ceiling(-2.3) = -2

ceiling(4) = 4

ms256087.collapse_all(ko-kr,VS.120).gif프로세서 출력

<?xml version="1.0"?><p />ceiling(2.5) =
      3<p />ceiling(-2.3) =
      -2<p />ceiling(4) =
      4

참고 항목

참조

XML 데이터 형식 참조