<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="guide" id="floor-ceil" xml:lang="ja">

    <info>
        <link type="guide" xref="index#equation"/>
    
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>赤星 柔充</mal:name>
      <mal:email>yasumichi@vinelinux.org</mal:email>
      <mal:years>2012</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>sujiniku</mal:name>
      <mal:email>sujinikusityuu@gmail.com</mal:email>
      <mal:years>2022</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Takayuki Kusano</mal:name>
      <mal:email>https://bsky.app/profile/tkusano.jp</mal:email>
      <mal:years>2025.</mal:years>
    </mal:credit>
  </info>

	<title>丸め</title>

    <p>
    Nearest integer values tying away from zero are calculated using the [ and ] symbols or round <link xref="function">function</link>.
    </p>
    <example>
    <p>
    [0.5]
    </p>
    <p>round (0.5)</p>
    </example>

    <p>
    Nearest integer values toward -∞ also known as floor values are calculated using the ⌊ and ⌋ symbols or floor <link xref="function">function</link>.
    </p>
    <example>
    <p>⌊0.5⌋</p>
    <p>floor (0.5)</p>
    </example>

    <p>
    Nearest integer values toward +∞ also known as ceiling values are calculated using the ⌈ and ⌉ symbols or ceil <link xref="function">function</link>.
    </p>
    <example>
    <p>⌈0.5⌉</p>
    <p>ceil (0.5)</p>
    </example>

    <p>
    Nearest integer values toward 0 i.e. the integer components are calculated using int <link xref="function">function</link>.
    </p>
    <p>
    The fractional components are calculated using frac <link xref="function">function</link>.
    </p>
    <example>
    <p>
    int (0.5)
    </p>
    <p>
    frac (0.5)
    </p>
    </example>
</page>
