• Skip to main content
  • Skip to search
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. 開発者向けのウェブ技術
  2. XPath
  3. Functions
  4. round
  • Change language
  • View in English

round

XSLT/XPath リファレンス: XSLT 要素, EXSLT 関数, XPath 関数, XPath 軸

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

構文

round(decimal )

引数

decimal
丸められる小数。

戻り値

decimalよりも小さいか、大きいか、等しい、最も近い整数。

注記

  • -0.5 は負のゼロに丸められます。 0.4 は正のゼロに丸められます。

定義

XPath 1.0 4.4

Gecko でのサポート

サポート済み。

Found a problem with this page?

  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Apr 23, 2021, by MDN contributors

Change your language
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

Mozilla

© 2005-2021 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies