Results of 1 - 10 of about 151 for round (0.008 sec.)
- 浮動小数点数を丸める 11610
- « rad2deg sin » PHP Manual Math 関数 浮動小数点数を丸める 検索 round (PHP 4, PHP 5, PHP 7, PHP 8) round — 浮動小数点数を丸める 説明 function round ( int | float $num , int $precision = 0 , int | RoundingMode $mode = RoundingMode::HalfAwayFr
... 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
- 浮動小数点数を丸める 11610
- « rad2deg sin » PHP Manual Math 関数 浮動小数点数を丸める 検索 round (PHP 4, PHP 5, PHP 7, PHP 8) round — 浮動小数点数を丸める 説明 function round ( int | float $num , int $precision = 0 , int | RoundingMode $mode = RoundingMode::HalfAwayFr
... 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
- 任意精度数値を丸める 10665
- « BcMath\Number::powmod BcMath\Number::__serialize » PHP Manual BcMath\Number 任意精度数値を丸める 検索 BcMath\Number::round (PHP 8 >= 8.4.0) BcMath\Number::round — 任意精度数値を丸める 説明 public function BcMath\Number::round ( int $preci
... sion = 0 , RoundingMode $mode = RoundingMode::HalfAwayFromZero ): BcMath\Number $this を、指定した precision (小数点以下の桁数)に丸めた値を ... 近い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 ...
-
https://man.mtool.work/php/8.3/bcmath-number.round.html
- 任意精度数値を丸める 10665
- « BcMath\Number::powmod BcMath\Number::__serialize » PHP Manual BcMath\Number 任意精度数値を丸める 検索 BcMath\Number::round (PHP 8 >= 8.4.0) BcMath\Number::round — 任意精度数値を丸める 説明 public function BcMath\Number::round ( int $preci
... sion = 0 , RoundingMode $mode = RoundingMode::HalfAwayFromZero ): BcMath\Number $this を、指定した precision (小数点以下の桁数)に丸めた値を ... 近い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 ...
-
https://man.mtool.work/php/8.3/bcmath-number.round.html
- 直線を描画する 8914
- « imagelayereffect imageloadfont » PHP Manual GD および Image 関数 直線を描画する 検索 imageline (PHP 4, PHP 5, PHP 7, PHP 8) imageline — 直線を描画する 説明 function imageline ( GdImage $image , int $x1 , int $y1 , int $x2 , int $y2 , int
... , $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
- 直線を描画する 8879
- « imagelayereffect imageloadfont » PHP Manual GD および Image 関数 直線を描画する 検索 imageline (PHP 4, PHP 5, PHP 7, PHP 8) imageline — 直線を描画する 説明 function imageline ( GdImage $image , int $x1 , int $y1 , int $x2 , int $y2 , int
... , $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
- NumberFormatter クラス 7864
- « Collator::sortWithSortKeys NumberFormatter::create » PHP Manual intl NumberFormatter クラス 検索 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
- Sets a millisecond timeout for database calls 7864
- « oci_set_action oci_set_client_identifier » PHP Manual OCI8 関数 Sets a millisecond timeout for database calls 検索 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 mi
... ion 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-timout.html
- NumberFormatter クラス 7864
- « Collator::sortWithSortKeys NumberFormatter::create » PHP Manual intl NumberFormatter クラス 検索 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
- Sets a millisecond timeout for database calls 7864
- « oci_set_action oci_set_client_identifier » PHP Manual OCI8 関数 Sets a millisecond timeout for database calls 検索 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 mi
... ion 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-timout.html