svn: /phpdoc/ja/trunk/language/types/ integer.xml

From: Date: Thu, 19 Dec 2019 21:21:49 +0000
Subject: svn: /phpdoc/ja/trunk/language/types/ integer.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-5186@lists.php.net to get a copy of this message
mumumu Thu, 19 Dec 2019 21:21:49 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=348602 Log: sync with en Changed paths: U phpdoc/ja/trunk/language/types/integer.xml Modified: phpdoc/ja/trunk/language/types/integer.xml =================================================================== --- phpdoc/ja/trunk/language/types/integer.xml 2019-12-19 21:15:40 UTC (rev 348601) +++ phpdoc/ja/trunk/language/types/integer.xml 2019-12-19 21:21:49 UTC (rev 348602) @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 344518 Maintainer: takagi Status: ready --> -<!-- CREDITS: hirokawa,shimooka --> +<!-- EN-Revision: 347812 Maintainer: takagi Status: ready --> +<!-- CREDITS: hirokawa,shimooka,mumumu --> <sect1 xml:id="language.types.integer"> <title>整数</title> @@ -57,7 +57,6 @@ <![CDATA[ <?php $a = 1234; // 10進整数 -$a = -123; // 負の数 $a = 0123; // 8進数 (10進数の83と等価) $a = 0x1A; // 16進数 (10進数の26と等価) $a = 0b11111111; // 2進数 (10進数の255と等価) @@ -82,10 +81,10 @@ binary : 0[bB][01]+ -integer : [+-]?decimal - | [+-]?hexadecimal - | [+-]?octal - | [+-]?binary +integer : decimal + | hexadecimal + | octal + | binary ]]> </programlisting> </informalexample> @@ -167,6 +166,12 @@ 0 に近い方向の整数値に値を丸めるためにキャストを使用することができ、 また、<function>round</function> 関数を使用することもできます。 </para> + <note> + <simpara> + PHP 7.0.0 以降では、整数の割り算に <function>intdiv</function> + 関数を使うことができます。 + </simpara> + </note> <informalexample> <programlisting role="php"> @@ -268,6 +273,14 @@ </simpara> </sect3> + <sect3 xml:id="language.types.integer.casting-from-null"> + <title><type>NULL</type> から</title> + + <simpara> + &null; は、常に0に変換されます。 + </simpara> + </sect3> + <sect3 xml:id="language.types.integer.casting.from-other"> <title>他の型から</title>

« previous php.doc.ja (#5186) next »