Results of 1 - 10 of about 75 for round (0.002 sec.)
- round — 浮動小数点数を丸める | PHP 8.3 13767
- round (PHP 4, PHP 5, PHP 7, PHP 8) round — 浮動小数点数を丸める 説明 function round ( int | float $num , int $precision = 0 , int | RoundingMode $mode = RoundingMode::HalfAwayFromZero ): float num を、指定した precision (小数点以下の桁数)に
... n が -1 の場合、 num は 一番近い10の倍数に、 precision が -2 の場合は 一番近い100の倍数に丸められる、という具合です。 mode RoundingMode もしくは次の定数のいずれかを使って、丸めのモードを指定します。 定数 説明 PHP_ROUND_HALF_UP 端数が5(半分)の場合、 nu ... m をゼロから離れる方向に丸めます。 1.5 は 2 に、そして -1.5 は -2 になります。 PHP_ROUND_HALF_DOWN 端数が5(半分)の場合、 num をゼロに近づく方向に丸めます。 1.5 は 1 に、そして -1.5 は -1 になります。 PHP_ROUND_H ... ALF_EVEN 端数が5(半分)の場合、 num をもっとも近い偶数に丸めます。 1.5 や 2.5 は 2 になります。 PHP_ROUND_HALF_ODD 端数が5(半分)の場合、 num をもっとも近い奇数に丸めます。 1.5 は 1 に、そして 2.5 は 3 になります。 ただし、新規に ...
-
https://man.mtool.work/php/8.3/function.round.html
- BcMath\Number::round — 任意精度数値を丸める | PHP 8.3 12670
- BcMath\Number::round (PHP 8 >= 8.4.0) BcMath\Number::round — 任意精度数値を丸める 説明 public function BcMath\Number::round ( int $precision = 0 , RoundingMode $mode = RoundingMode::HalfAwayFromZero ): BcMath\Number $this を、指定した preci
... 近い10の倍数に、 precision が -2 の場合は 一番近い100の倍数に丸められる、という具合です。 mode 指定する丸めモード。詳しくは RoundingMode を参照してください。 戻り値 結果を新しい BcMath\Number オブジェクトとして返します。 エラー / 例外 このメソッドは、無 ... 効な mode が指定された場合に ValueError をスローします。 例 例1 BcMath\Number::round() の例 <?php var_dump ( new BcMath\Number ( '3.4' )-> round (), new BcMath\Number ( '3.5' )-> round (), new BcMath\Number ... ( '3.6' )-> round (), new BcMath\Number ( '3.6' )-> round ( 0 ), new BcMath\Number ( '5.045' )-> round ( 2 ), new BcMath\Number ( '5.055' )- ...
-
https://man.mtool.work/php/8.3/bcmath-number.round.html
- imageline — 直線を描画する | PHP 8.3 10669
- imageline (PHP 4, PHP 5, PHP 7, PHP 8) imageline — 直線を描画する 説明 function imageline ( GdImage $image , int $x1 , int $y1 , int $x2 , int $y2 , int $color ): true 指定したふたつの点を結ぶ直線を描画します。 パラメータ image imagecreatet
... , $x2 , $y2 , $color ); } $t = $thick / 2 - 0.5 ; if ( $x1 == $x2 || $y1 == $y2 ) { return imagefilledrectangle ( $image , round ( min ( $x1 , $x2 ) - $t ), round ( min ( $y1 , $y2 ) - $t ), round ( max ( $x1 , $x2 ) + $t ), round ( max ( $y1 , $y2 ) ... $t ), $color ); } $k = ( $y2 - $y1 ) / ( $x2 - $x1 ); //y = kx + q $a = $t / sqrt ( 1 + pow ( $k , 2 )); $points = array( round ( $x1 - ( 1 + $k )* $a ), round ( $y1 + ( 1 - $k )* $a ), round ( $x1 - ( 1 - $k )* $a ), round ( $y1 - ( 1 + $k )* $a ), ... round ( $x2 + ( 1 + $k )* $a ), round ( $y2 - ( 1 - $k )* $a ), round ( $x2 + ( 1 - $k )* $a ), round ( $y2 + ( 1 + $k )* $a ), ); imagefilledpolygon ( $image , ...
-
https://man.mtool.work/php/8.3/function.imageline.html
- oci_set_call_timeout — Sets a millisecond timeout for database calls | PHP 8.3 9474
- oci_set_call_timeout (PHP 7.2 >= 7.2.14, PHP 8, PHP 7 >= 7.3.1, PHP 8, PECL OCI8 >= 2.2.0) oci_set_call_timeout — Sets a millisecond timeout for database calls 説明 function oci_set_call_timeout ( resource $connection , int $timeout ): bool
... Sets a timeout limiting the maximum time a database round-trip using this connection may take. Each OCI8 operation may make zero or more calls to Oracle's client library. These int ... ernal calls may then may make zero or more round-trips to Oracle Database. If any one of those round-trips takes more than time_out milliseconds, then the operation is can ... celled and an error is returned to the application. The time_out value applies to each round-trip individually, not to the sum of all round-trips. Time spent processing in PHP OCI8 before or after the completion of ...
-
https://man.mtool.work/php/8.3/function.oci-set-call-timeout.html
- NumberFormatter クラス | PHP 8.3 9433
- NumberFormatter クラス (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) はじめに プログラムで数値を保存したり操作したりする際には、 ロケールに依存しないバイナリ表現を使用します。 数値を表示するときに、ロケールにあわせた文字列形式に変換しま
... ; public const int CASH_CURRENCY ; public const int CURRENCY_STANDARD ; public const int DEFAULT_STYLE ; public const int ROUND_CEILING ; public const int ROUND_FLOOR ; public const int ROUND_DOWN ; public const int ROUND_UP ; public const int ROUND_ ... TOWARD_ZERO ; public const int ROUND_AWAY_FROM_ZERO ; public const int ROUND_HALFEVEN ; public const int ROUND_HALFODD ; public const int ROUND_HALFDOWN ; publ ... ic const int ROUND_HALFUP ; public const int PAD_BEFORE_PREFIX ; public const int PAD_AFTER_PREFIX ; public const int PAD_BEFORE_SUFFIX ; pub ...
-
https://man.mtool.work/php/8.3/class.numberformatter.html
- gmp_div_q — 数値を除算する | PHP 8.3 8405
- gmp_div_q (PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8) gmp_div_q — 数値を除算する 説明 function gmp_div_q ( GMP | int | string $num1 , GMP | int | string $num2 , int $rounding_mode = GMP_ROUND_ZERO ): GMP num1 を num2 で割り、 結果を整数で返します
... 釈可能な string 。 文字列の場合、 gmp_init() で基数を自動検出するとき ( base に 0 を指定したとき) と同じ方法で解釈されます。 rounding_mode 結果の丸め方は rounding_mode で指定し、次の値を指定可能です。 GMP_ROUND_ZERO : 結果は 0 の方に丸められます。 GMP_R ... OUND_PLUSINF : 結果は、 +infinity の方に丸められます。 GMP_ROUND_MINUSINF : 結果は、 -infinity の方に丸められます。 GMP オブジェクト、 int 、 あるいは数値として解釈可能な string 。 文字列 ... ( $div1 ) . "\n" ; $div2 = gmp_div_q ( "1" , "3" ); echo gmp_strval ( $div2 ) . "\n" ; $div3 = gmp_div_q ( "1" , "3" , GMP_ROUND_PLUSINF ); echo gmp_strval ( $div3 ) . "\n" ; $div4 = gmp_div_q ( "-1" , "4" , GMP_ROUND_PLUSINF ); echo gmp_strval ( $div ...
-
https://man.mtool.work/php/8.3/function.gmp-div-q.html
- MongoDB\Driver\ServerDescription::getRoundTripTime — Returns the server's round... 8321
- MongoDB\Driver\ServerDescription::getRoundTripTime (mongodb >=1.13.0) MongoDB\Driver\ServerDescription::getRoundTripTime — Returns the server's round trip time in milliseconds 説明 final public function MongoDB\Driver\ServerDescription::get
... RoundTripTime (): ? int Returns the server's round trip time in milliseconds. This is the client's measurement of the duration of a » hello command. パラメータ この関数にはパ ... ラメータはありません。 戻り値 Returns the server's round trip time in milliseconds. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing erro ... ngoDB\Driver\Server::getLatency() - Returns the latency of this server in milliseconds 他のマニュアルの関連ページ Linux JM round(3) Linux JM aecho(1) ...
-
https://man.mtool.work/php/8.3/mongodb-driver-serverdescription.getroundtriptime...
- Swoole\Timer::stats — Get timer statistics. | PHP 8.3 8113
- Swoole\Timer::stats (No version information available, might only be in Git) Swoole\Timer::stats — Get timer statistics. 説明 public static function Swoole\Timer::stats (): array Get timer statistics. As of Swoole 4.4.0. 戻り値 Returns an a
... been started. It is false until the first timer is created. num The number of timers currently registered in the process. round The current round of the timer loop. 例 例1 Swoole\Timer::stats() example <?php $timer_id = Swoole\Timer :: tick ( 1000 , ... $timer_id ); ?> 上の例の出力は、 たとえば以下のようになります。 array(3) { ["initialized"]=> bool(true) ["num"]=> int(1) ["round"]=> int(0) } 他のマニュアルの関連ページ Python statistics Linux JM round(3) Python timeit Python timerfd DuckDB CREATE VIE ...
-
https://man.mtool.work/php/8.3/swoole-timer.stats.html
- 実行時設定 | PHP 8.3 8113
- 実行時設定 php.ini の設定により動作が変化します。 Trader 設定オプション 名前 デフォルト 変更可能 変更履歴 trader.real_precision 3 INI_ALL Since trader 0.2.1 trader.real_round_mode HALF_DOWN INI_ALL Since trader 0.3.0 以下に設定ディレクティブ
... に関する 簡単な説明を示します。 trader.real_precision int All the values in the returned arrays will be rounded to this precision. However the calculations inside TA-Lib happen with unrounded values. trader.real_round_mode string Co ... ntrols the trader real rounding policy. Valid values are HALF_UP , HALF_DOWN , HALF_EVEN and HALF_ODD . The behaviour is identical to the round() funct ... ion used with the mode argument. 他のマニュアルの関連ページ Linux JM round(3) Linux JM nearbyint(3) Linux JM nearbyintf(3) Linux JM nearbyintl(3) Linux JM rint(3) Linux JM rintf(3) ...
-
https://man.mtool.work/php/8.3/trader.configuration.html
- variant_round — 指定した桁で variant を丸める | PHP 8.3 8071
- variant_round (PHP 5, PHP 7, PHP 8) variant_round — 指定した桁で variant を丸める 説明 function variant_round ( mixed $value , int $decimals ): ? variant value を、 decimals で指定した桁で丸めた結果を返します。 パラメータ value variant。 de
... る関数は、MSDN のドキュメントでは VarAdd() となります。 戻り値 丸めた結果を返します。 失敗した場合は null を返します。 参考 round() - 浮動小数点数を丸める 他のマニュアルの関連ページ Linux JM round(3) Python floatingpoint Linux JM seq(1) Linux JM fpclas ...
-
https://man.mtool.work/php/8.3/function.variant-round.html