« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 22 for DivisionByZeroError (0.001 sec.)
DivisionByZeroError | PHP 8.3 14343
DivisionByZeroError (PHP 7, PHP 8) はじめに DivisionByZeroError は、数値をゼロで割ろうとした場合にスローされます。 クラス概要 class DivisionByZeroError extends ArithmeticError { /* 継承したプロパティ */ protected string $ message = "" ; pri ...
https://man.mtool.work/php/8.3/class.divisionbyzeroerror.html
intdiv — 整数値の除算 | PHP 8.3 10218
intdiv (PHP 7, PHP 8) intdiv — 整数値の除算 説明 function intdiv ( int $num1 , int $num2 ): int num1 を num2 で割った整数商を返します。 パラメータ num1 割られる数。 num2 num1 を割る数。 戻り値 num1 を num2 で割った整数商。 エラー / 例外 num ... 2 が 0 の場合、 DivisionByZeroError 例外がスローされます。 num1 が PHP_INT_MIN で num2 が -1 の場合、 ArithmeticError 例外がスローされます。 例 例1 intdiv() の ... Message (), PHP_EOL ; } ?> 上の例の出力は以下となります。 ArithmeticError: Division of PHP_INT_MIN by -1 is not an integer DivisionByZeroError: Division by zero 参考 / - 浮動小数点数値の除算 % - 整数値の剰余 fmod() - 引数で除算をした際の剰余を返す - 浮動小数点数値の ...
https://man.mtool.work/php/8.3/function.intdiv.html
新しいクラスおよびインターフェイス | PHP 8.3 9797
新しいクラスおよびインターフェイス Intl IntlChar リフレクション ReflectionGenerator ReflectionType セッション処理 SessionUpdateTimestampHandlerInterface 例外の階層 Throwable Error TypeError ParseError AssertionError ArithmeticError DivisionByZeroError ...
https://man.mtool.work/php/8.3/migration70.classes.html
定義済みの例外 | PHP 8.3 9797
定義済みの例外 目次 Exception ErrorException ClosedGeneratorException Error ArgumentCountError ArithmeticError AssertionError DivisionByZeroError CompileError ParseError TypeError ValueError UnhandledMatchError FiberError RequestParseBodyEx ...
https://man.mtool.work/php/8.3/reserved.exceptions.html
bcmod — 2 つの任意精度数値の剰余を取得する | PHP 8.3 9595
bcmod (PHP 4, PHP 5, PHP 7, PHP 8) bcmod — 2 つの任意精度数値の剰余を取得する 説明 function bcmod ( string $num1 , string $num2 , ? int $scale = null ): string num1 の、 num2 を法とする剰余を取得します。 結果は num1 と同じ符号を持ちます。 パ ... くは num2 が、BCMath で有効でない数値形式の文字列である場合 scale が範囲外の値である場合 この関数は、 num2 が 0 である場合、 DivisionByZeroError 例外をスローします。 変更履歴 バージョン 説明 8.0.0 scale は nullable になりました。 8.0.0 0 除算を行うと、 DivisionByZero ...
https://man.mtool.work/php/8.3/function.bcmod.html
bcpow — 任意精度数値をべき乗する | PHP 8.3 9393
bcpow (PHP 4, PHP 5, PHP 7, PHP 8) bcpow — 任意精度数値をべき乗する 説明 function bcpow ( string $num , string $exponent , ? int $scale = null ): string num の exponent 乗を求めます。 パラメータ num 基数を表す文字列。 exponent 指数を表す文字 ... 整数値でない場合 exponent もしくは scale が範囲外の値である場合 この関数は、 num の値が 0 かつ exponent が負の値である場合、 DivisionByZeroError 例外をスローします。 変更履歴 バージョン 説明 8.4.0 0 の負のべき乗を行った場合、 0 を返す代わりに DivisionByZeroError がス ...
https://man.mtool.work/php/8.3/function.bcpow.html
bcpowmod — 任意精度数値のべき乗の、指定した数値による剰余 | PHP 8.3 9393
bcpowmod (PHP 5, PHP 7, PHP 8) bcpowmod — 任意精度数値のべき乗の、指定した数値による剰余 説明 function bcpowmod ( string $num , string $exponent , string $modulus , ? int $scale = null ): string modulus で割った余りを求めることを考慮して、 ... ずれかが整数値でない場合 exponent が負の値である場合 scale が範囲外の値である場合 この関数は、 modulus の値が 0 である場合、 DivisionByZeroError 例外をスローします。 変更履歴 バージョン 説明 8.0.0 scale は、nullable になりました。 8.0.0 exponent が負の値の場合、 fals ... e を返す代わりに ValueError をスローするようになりました。 8.0.0 0 除算を行うと、 DivisionByZeroError 例外がスローされるようになりました。以前は false が返されていました。 例 以下の 2 つの文は機能的に同じです。しかし bcpowmo ...
https://man.mtool.work/php/8.3/function.bcpowmod.html
定義済のクラス | PHP 8.3 8349
定義済のクラス ここでは、標準で定義されているクラスをとりあげます。 さまざまな拡張モジュールで定義されるその他のクラスについては、 個々の拡張モジュールのリファレンスで述べられています。 標準で定義されているクラス 以下のクラスは、PHP ビルドに ... す。 Generator 定義済みの final クラス Generator は、 ジェネレータ を表現するために使います。 ArithmeticError AssertionError DivisionByZeroError Error Throwable ParseError TypeError 特別なクラス 次の識別子は特別な意味を持っているので、クラス名としては使えません。 sel ...
https://man.mtool.work/php/8.3/reserved.classes.html
bcdiv — 2つの任意精度数値で除算を行う | PHP 8.3 8147
bcdiv (PHP 4, PHP 5, PHP 7, PHP 8) bcdiv — 2つの任意精度数値で除算を行う 説明 function bcdiv ( string $num1 , string $num2 , ? int $scale = null ): string num1 を num2 で除算します。 パラメータ num1 被除数を表す文字列。 num2 割る数を表す文字 ... くは num2 が、BCMath で有効でない数値形式の文字列である場合 scale が範囲外の値である場合 この関数は、 num2 が 0 である場合、 DivisionByZeroError 例外をスローします。 変更履歴 バージョン 説明 8.0.0 scale は、nullable になりました。 例 例1 bcdiv() の例 <?php echo bcdiv ...
https://man.mtool.work/php/8.3/function.bcdiv.html
gmp_powm — べき乗とモジュロを計算する | PHP 8.3 8147
gmp_powm (PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8) gmp_powm — べき乗とモジュロを計算する 説明 function gmp_powm ( GMP | int | string $num , GMP | int | string $exponent , GMP | int | string $modulus ): GMP modulus を法として ( num の exponent 乗 ... 。 戻り値 結果を GMP 数で返します。 エラー / 例外 exponent が負の場合、 ValueError がスローされます。 modulus が 0 の場合、 DivisionByZeroError がスローされます。 PHP 8.0.0 より前のバージョンでは、 E_WARNING が発生していました。 例 例1 gmp_powm() の例 <?php $pow1 = ...
https://man.mtool.work/php/8.3/function.gmp-powm.html
PREV 1 2 3 NEXT