---
title: round
slug: Web/XPath/Functions/round
tags:
  - XSLT
  - XSLT_Reference
translation_of: Web/XPath/Functions/round
---
<p>{{ XsltRef() }}</p>

<p><code>round</code> 関数は、与えられた数値に最も近い整数を返します。</p>

<h3 id="Syntax">構文</h3>

<pre class="eval">round(<em>decimal</em> )
</pre>

<h3 id="Arguments">引数</h3>

<dl>
 <dt><em><code>decimal</code></em></dt>
 <dd>丸められる小数。</dd>
</dl>

<h3 id="Returns">返値</h3>

<p><em><code>decimal</code></em>よりも小さいか、大きいか、等しい、最も近い整数。</p>

<h3 id="Notes">注</h3>

<ul>
 <li>-0.5 は負のゼロに丸められます。 0.4 は正のゼロに丸められます。</li>
</ul>

<h3 id="Defined">定義</h3>

<p><a href="https://www.w3.org/TR/xpath#function-round">XPath 1.0 4.4</a></p>

<h3 id="Gecko_support">Gecko での対応</h3>

<p>対応済み。</p>