1
0
mirror of https://github.com/php/doc-ja.git synced 2026-03-25 07:32:13 +01:00
Files
KentarouTakeda 768e8d6ed7 軽微な差分を優先し26ファイルを既訳更新 (#349)
- reference/mbstring/functions/mb-decode-numericentity.xml
  1. php/doc-en@4e69a9f2b1
- reference/imap/functions/imap-headerinfo.xml
  1. php/doc-en@4e69a9f2b1
- reference/ssh2/functions/ssh2-auth-pubkey-file.xml
  1. php/doc-en@74ef2355c5
- reference/ssh2/functions/ssh2-connect.xml
  1. php/doc-en@74ef2355c5
- reference/stream/functions/stream-filter-append.xml
  1. php/doc-en@a684294e0b
- reference/stream/functions/stream-filter-prepend.xml
  1. php/doc-en@a684294e0b
- reference/filesystem/functions/fgetcsv.xml
  1. php/doc-en@e1fd0bef1d
  2. php/doc-en@0a3648a718
  3. `&warning.csv.escape-parameter;` の重複を削除(既訳のバグ修正)
- reference/spl/splfileobject/fgetcsv.xml
  1. php/doc-en@e1fd0bef1d
  2. php/doc-en@3a89b55d11
  3. php/doc-en@0a3648a718
- language/predefined/attributes/nodiscard.xml
  1. php/doc-en@30bda33771
- reference/pdo_sqlite/pdo/sqlite/createfunction.xml
  1. php/doc-en@28930349ca
- reference/math/functions/fmod.xml
  1. php/doc-en@54a788ca59
- reference/simplexml/simplexmlelement/addChild.xml
  1. php/doc-en@dca2a8354f
- reference/json/functions/json-last-error.xml
  1. php/doc-en@058ea1e842
- features/commandline.xml
  1. php/doc-en@96b10a9885
- appendices/migration85/incompatible.xml
  1. php/doc-en@048982b729
  2. php/doc-en@f81bbcf9d3
- reference/random/random/randomizer/getfloat.xml
  1. php/doc-en@1ada637cc8
  2. php/doc-en@423a1da63f
- reference/mysqli/mysqli/multi-query.xml
  1. php/doc-en@1beae37b69
- reference/image/functions/getimagesize.xml
  1. php/doc-en@6bb90d24b2
- reference/curl/functions/curl-close.xml
  1. php/doc-en@86c8ebd19e
- reference/curl/functions/curl-share-close.xml
  1. php/doc-en@29c3d13980
- reference/yaml/functions/yaml-parse-file.xml
  1. php/doc-en@132d2a8d63
- reference/mysqli/mysqli/options.xml
  1. php/doc-en@e309a62b16
  2. MYSQLI_SERVER_PUBLIC_KEY の古い「PHP 5.5.0 以降」テキストを削除(既訳のバグ修正)
- appendices/transports.xml
  1. php/doc-en@ae90ecc932
- reference/soap/soapserver/addfunction.xml
  1. php/doc-en@577239f64b
- reference/var/functions/settype.xml
  1. php/doc-en@8d49e302b4
- features/http-auth.xml
  1. php/doc-en@cd4180557a
2026-03-10 08:58:57 +09:00

107 lines
3.1 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 54a788ca59d95ff2b4189406437345a21b489435 Maintainer: takagi Status: ready -->
<!-- Credits: mumumu -->
<refentry xml:id="function.fmod" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>fmod</refname>
<refpurpose>引数で除算をした際の剰余を返す</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>float</type><methodname>fmod</methodname>
<methodparam><type>float</type><parameter>num1</parameter></methodparam>
<methodparam><type>float</type><parameter>num2</parameter></methodparam>
</methodsynopsis>
<para>
被除数(<parameter>num1</parameter>)を除数(<parameter>num2</parameter>
で割った余りを返します。余り(<varname>r</varname>)は、
整数 <varname>i</varname> を使用して num1 = i * num2 + r で定義されます。
<parameter>num2</parameter> がゼロ以外の場合は<varname>r</varname>
<parameter>num1</parameter> と同符号で、絶対値は <parameter>num2</parameter>
より小さくなります。
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>num1</parameter></term>
<listitem>
<para>
被除数。
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>num2</parameter></term>
<listitem>
<para>
除数。
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
<parameter>num1</parameter>/<parameter>num2</parameter> の浮動小数点の剰余を返します。
第二引数が 0 の場合は <constant>NAN</constant> (<type>float</type>) を返します。
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>fmod</function> の使用法</title>
<programlisting role="php">
<![CDATA[
<?php
$x = 5.7;
$y = 1.3;
$r = fmod($x, $y);
// $r は 0.5 です。なぜなら 4 * 1.3 + 0.5 = 5.7 だからです。
var_dump($x, $y, $r);
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><link linkend="language.operators.arithmetic"><literal>/</literal></link> - 浮動小数点数値の除算</member>
<member><link linkend="language.operators.arithmetic"><literal>%</literal></link> - 整数値の剰余</member>
<member><function>intdiv</function> - 整数値の除算</member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->