« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 69 for digit (0.002 sec.)
任意精度数値を丸める 10859
« bcpowmod bcscale » PHP Manual BC Math 関数 任意精度数値を丸める 検索 bcround (PHP 8 >= 8.4.0) bcround — 任意精度数値を丸める 説明 function bcround ( string $num , int $precision = 0 , RoundingMode $mode = RoundingMode::HalfAwayFromZero ): ... bcround() で precision を指定し、 異なる mode を指定した例 <?php echo 'Using RoundingMode::HalfAwayFromZero with 1 decimal digit precision' . PHP_EOL ; var_dump ( bcround ( 1.55 , 1 , RoundingMode :: HalfAwayFromZero )); var_dump ( bcround (- 1.55 , 1 ... , RoundingMode :: HalfAwayFromZero )); echo PHP_EOL ; echo 'Using RoundingMode::HalfTowardsZero with 1 decimal digit precision' . PHP_EOL ; var_dump ( bcround ( 1.55 , 1 , RoundingMode :: HalfTowardsZero )); var_dump ( bcround (- 1.55 , 1 ... , RoundingMode :: HalfTowardsZero )); echo PHP_EOL ; echo 'Using RoundingMode::HalfEven with 1 decimal digit precision' . PHP_EOL ; var_dump ( bcround ( 1.55 , 1 , RoundingMode :: HalfEven )); var_dump ( bcround (- 1.55 , 1 , Round ...
https://man.mtool.work/php/8.3/function.bcround.html
任意精度数値を丸める 10859
« bcpowmod bcscale » PHP Manual BC Math 関数 任意精度数値を丸める 検索 bcround (PHP 8 >= 8.4.0) bcround — 任意精度数値を丸める 説明 function bcround ( string $num , int $precision = 0 , RoundingMode $mode = RoundingMode::HalfAwayFromZero ): ... bcround() で precision を指定し、 異なる mode を指定した例 <?php echo 'Using RoundingMode::HalfAwayFromZero with 1 decimal digit precision' . PHP_EOL ; var_dump ( bcround ( 1.55 , 1 , RoundingMode :: HalfAwayFromZero )); var_dump ( bcround (- 1.55 , 1 ... , RoundingMode :: HalfAwayFromZero )); echo PHP_EOL ; echo 'Using RoundingMode::HalfTowardsZero with 1 decimal digit precision' . PHP_EOL ; var_dump ( bcround ( 1.55 , 1 , RoundingMode :: HalfTowardsZero )); var_dump ( bcround (- 1.55 , 1 ... , RoundingMode :: HalfTowardsZero )); echo PHP_EOL ; echo 'Using RoundingMode::HalfEven with 1 decimal digit precision' . PHP_EOL ; var_dump ( bcround ( 1.55 , 1 , RoundingMode :: HalfEven )); var_dump ( bcround (- 1.55 , 1 , Round ...
https://man.mtool.work/php/8.3/function.bcround.html
任意精度数値を丸める 9997
« 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 ... th\Number ( '1.55' ); $negative = new BcMath\Number ( '-1.55' ); echo 'Using RoundingMode::HalfAwayFromZero with 1 decimal digit precision' . PHP_EOL ; var_dump ( $positive -> round ( 1 , RoundingMode :: HalfAwayFromZero ), $negative -> round ( 1 , Ro ... undingMode :: HalfAwayFromZero ), ); echo PHP_EOL ; echo 'Using RoundingMode::HalfTowardsZero with 1 decimal digit precision' . PHP_EOL ; var_dump ( $positive -> round ( 1 , RoundingMode :: HalfTowardsZero ), $negative -> round ( 1 , Rou ... ndingMode :: HalfTowardsZero ), ); echo PHP_EOL ; echo 'Using RoundingMode::HalfEven with 1 decimal digit precision' . PHP_EOL ; var_dump ( $positive -> round ( 1 , RoundingMode :: HalfEven ), $negative -> round ( 1 , RoundingMo ...
https://man.mtool.work/php/8.3/bcmath-number.round.html
任意精度数値を丸める 9997
« 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 ... th\Number ( '1.55' ); $negative = new BcMath\Number ( '-1.55' ); echo 'Using RoundingMode::HalfAwayFromZero with 1 decimal digit precision' . PHP_EOL ; var_dump ( $positive -> round ( 1 , RoundingMode :: HalfAwayFromZero ), $negative -> round ( 1 , Ro ... undingMode :: HalfAwayFromZero ), ); echo PHP_EOL ; echo 'Using RoundingMode::HalfTowardsZero with 1 decimal digit precision' . PHP_EOL ; var_dump ( $positive -> round ( 1 , RoundingMode :: HalfTowardsZero ), $negative -> round ( 1 , Rou ... ndingMode :: HalfTowardsZero ), ); echo PHP_EOL ; echo 'Using RoundingMode::HalfEven with 1 decimal digit precision' . PHP_EOL ; var_dump ( $positive -> round ( 1 , RoundingMode :: HalfEven ), $negative -> round ( 1 , RoundingMo ...
https://man.mtool.work/php/8.3/bcmath-number.round.html
数字かどうかを調べる 9884
« ctype_cntrl ctype_graph » PHP Manual Ctype 関数 数字かどうかを調べる 検索 ctype_digit (PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8) ctype_digit — 数字かどうかを調べる 説明 function ctype_digit ( mixed $text ): bool 与えられた文字列 text のすべての ... 場合に true 、そうでない場合に false を返します。 空文字列を渡して呼び出した場合、結果は常に false になります。 例 例1 ctype_digit() の例 <?php $strings = array( '1820.20' , '10002' , 'wsl!12' ); foreach ( $strings as $testcase ) { if ( ctype_digit ( $t ... estcase )) { echo "The string $testcase consists of all digits.\n" ; } else { echo "The string $testcase does not consist of all digits.\n" ; } } ?> 上の例の出力は以下となります。 The ... string 1820.20 does not consist of all digits. The string 10002 consists of all digits. The string wsl!12 does not consist of all digits. 例2 ctype_digit() で文字列と整 ...
https://man.mtool.work/php/8.3/function.ctype-digit.html
ロケールの設定に基づいてローカルな日付・時間をフォーマットする 9884
« mktime strptime » PHP Manual 日付・時刻 関数 ロケールの設定に基づいてローカルな日付・時間をフォーマットする 検索 strftime (PHP 4, PHP 5, PHP 7, PHP 8) strftime — ロケールの設定に基づいてローカルな日付・時間をフォーマットする 警告 この関数 ... s = array( 'A' => 'A full textual representation of the day' , 'B' => 'Full month name, based on the locale' , 'C' => 'Two digit representation of the century (year divided by 100, truncated to an integer)' , 'D' => 'Same as "%m/%d/%y"' , 'E' => '' , ... 'F' => 'Same as "%Y-%m-%d"' , 'G' => 'The full four-digit version of %g' , 'H' => 'Two digit representation of the hour in 24-hour format' , 'I' => 'Two digit representation of the ... hour in 12-hour format' , 'J' => '' , 'K' => '' , 'L' => '' , 'M' => 'Two digit representation of the minute' , 'N' => '' , 'O' => '' , 'P' => 'lower-case "am" or "pm" based on the given time' , 'Q' => ...
https://man.mtool.work/php/8.3/function.strftime.html
数字かどうかを調べる 9884
« ctype_cntrl ctype_graph » PHP Manual Ctype 関数 数字かどうかを調べる 検索 ctype_digit (PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8) ctype_digit — 数字かどうかを調べる 説明 function ctype_digit ( mixed $text ): bool 与えられた文字列 text のすべての ... 場合に true 、そうでない場合に false を返します。 空文字列を渡して呼び出した場合、結果は常に false になります。 例 例1 ctype_digit() の例 <?php $strings = array( '1820.20' , '10002' , 'wsl!12' ); foreach ( $strings as $testcase ) { if ( ctype_digit ( $t ... estcase )) { echo "The string $testcase consists of all digits.\n" ; } else { echo "The string $testcase does not consist of all digits.\n" ; } } ?> 上の例の出力は以下となります。 The ... string 1820.20 does not consist of all digits. The string 10002 consists of all digits. The string wsl!12 does not consist of all digits. 例2 ctype_digit() で文字列と整 ...
https://man.mtool.work/php/8.3/function.ctype-digit.html
ロケールの設定に基づいてローカルな日付・時間をフォーマットする 9884
« mktime strptime » PHP Manual 日付・時刻 関数 ロケールの設定に基づいてローカルな日付・時間をフォーマットする 検索 strftime (PHP 4, PHP 5, PHP 7, PHP 8) strftime — ロケールの設定に基づいてローカルな日付・時間をフォーマットする 警告 この関数 ... s = array( 'A' => 'A full textual representation of the day' , 'B' => 'Full month name, based on the locale' , 'C' => 'Two digit representation of the century (year divided by 100, truncated to an integer)' , 'D' => 'Same as "%m/%d/%y"' , 'E' => '' , ... 'F' => 'Same as "%Y-%m-%d"' , 'G' => 'The full four-digit version of %g' , 'H' => 'Two digit representation of the hour in 24-hour format' , 'I' => 'Two digit representation of the ... hour in 12-hour format' , 'J' => '' , 'K' => '' , 'L' => '' , 'M' => 'Two digit representation of the minute' , 'N' => '' , 'O' => '' , 'P' => 'lower-case "am" or "pm" based on the given time' , 'Q' => ...
https://man.mtool.work/php/8.3/function.strftime.html
コードポイントの10進の数値を、指定された基数で返す 9587
« IntlChar::chr IntlChar::enumCharNames » PHP Manual IntlChar コードポイントの10進の数値を、指定された基数で返す 検索 IntlChar::digit (PHP 7, PHP 8) IntlChar::digit — コードポイントの10進の数値を、指定された基数で返す 説明 public static fun ... ction IntlChar::digit ( int | string $codepoint , int $base = 10 ): int | false | null 指定されたコードポイントの10進の数値を、指定された基数で返 ... はまる場合、 有効な値であると見なされます。 指定された文字が、10進数の値である場合。 これは、general category "Nd" (decimal digit numbers)、かつ Numeric_Type of "Decimal" である場合です。 この場合、値はその文字の10進の数値になります。 指定された文字が、 ... の関数の返り値を調べるには ===演算子 を 使用してください。 例 例1 さまざまなコードポイントの例 <?php var_dump ( IntlChar :: digit ( "0" )); var_dump ( IntlChar :: digit ( "3" )); var_dump ( IntlChar :: digit ( "A" , 16 )); var_dump ( IntlChar :: digit ...
https://man.mtool.work/php/8.3/intlchar.digit.html
コードポイントの10進の数値を、指定された基数で返す 9530
« IntlChar::chr IntlChar::enumCharNames » PHP Manual IntlChar コードポイントの10進の数値を、指定された基数で返す 検索 IntlChar::digit (PHP 7, PHP 8) IntlChar::digit — コードポイントの10進の数値を、指定された基数で返す 説明 public static fun ... ction IntlChar::digit ( int | string $codepoint , int $base = 10 ): int | false | null 指定されたコードポイントの10進の数値を、指定された基数で返 ... はまる場合、 有効な値であると見なされます。 指定された文字が、10進数の値である場合。 これは、general category "Nd" (decimal digit numbers)、かつ Numeric_Type of "Decimal" である場合です。 この場合、値はその文字の10進の数値になります。 指定された文字が、 ... の関数の返り値を調べるには ===演算子 を 使用してください。 例 例1 さまざまなコードポイントの例 <?php var_dump ( IntlChar :: digit ( "0" )); var_dump ( IntlChar :: digit ( "3" )); var_dump ( IntlChar :: digit ( "A" , 16 )); var_dump ( IntlChar :: digit ...
https://man.mtool.work/php/8.3/intlchar.digit.html
PREV 1 2 3 4 5 6 7 NEXT