« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 161 for Decimal (0.004 sec.)
ビット演算子 11802
« 代入演算子 比較演算子 » PHP Manual 演算子 ビット演算子 検索 ビット演算子 ビット演算子は、整数値の特定のビットの評価や操作を行います。 ビット演算子 例 名前 結果 $a & $b ビット積 $a および $b の両方にセットされているビットがセットされます $ ... mat = '%0' . ( PHP_INT_SIZE * 8 ) . "b\n" ; printf ( "Expression: %d = %d %s %d\n" , $res , $val , $op , $places ); echo " Decimal:\n" ; printf ( " val=%d\n" , $val ); printf ( " res=%d\n" , $res ); echo " Binary:\n" ; printf ( ' val=' . $format , $val ... 上の例の 32 ビットマシンでの出力は、このようになります。 --- BIT SHIFT RIGHT ON POSITIVE INTEGERS --- Expression: 2 = 4 >> 1 Decimal: val=4 res=2 Binary: val=00000000000000000000000000000100 res=00000000000000000000000000000010 NOTE: copy of sign bit shif ... ted into left side Expression: 1 = 4 >> 2 Decimal: val=4 res=1 Binary: val=00000000000000000000000000000100 res=00000000000000000000000000000001 Expression: 0 = 4 >> 3 Deci ...
https://man.mtool.work/php/8.3/language.operators.bitwise.html
ビット演算子 11802
« 代入演算子 比較演算子 » PHP Manual 演算子 ビット演算子 検索 ビット演算子 ビット演算子は、整数値の特定のビットの評価や操作を行います。 ビット演算子 例 名前 結果 $a & $b ビット積 $a および $b の両方にセットされているビットがセットされます $ ... mat = '%0' . ( PHP_INT_SIZE * 8 ) . "b\n" ; printf ( "Expression: %d = %d %s %d\n" , $res , $val , $op , $places ); echo " Decimal:\n" ; printf ( " val=%d\n" , $val ); printf ( " res=%d\n" , $res ); echo " Binary:\n" ; printf ( ' val=' . $format , $val ... 上の例の 32 ビットマシンでの出力は、このようになります。 --- BIT SHIFT RIGHT ON POSITIVE INTEGERS --- Expression: 2 = 4 >> 1 Decimal: val=4 res=2 Binary: val=00000000000000000000000000000100 res=00000000000000000000000000000010 NOTE: copy of sign bit shif ... ted into left side Expression: 1 = 4 >> 2 Decimal: val=4 res=1 Binary: val=00000000000000000000000000000100 res=00000000000000000000000000000001 Expression: 0 = 4 >> 3 Deci ...
https://man.mtool.work/php/8.3/language.operators.bitwise.html
任意精度数値を丸める 10129
« bcpowmod bcscale » PHP Manual BC Math 関数 任意精度数値を丸める 検索 bcround (PHP 8 >= 8.4.0) bcround — 任意精度数値を丸める 説明 function bcround ( string $num , int $precision = 0 , RoundingMode $mode = RoundingMode::HalfAwayFromZero ): ... "9" 例4 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.5 ... 5 , 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 , ...
https://man.mtool.work/php/8.3/function.bcround.html
任意精度数値を丸める 10129
« bcpowmod bcscale » PHP Manual BC Math 関数 任意精度数値を丸める 検索 bcround (PHP 8 >= 8.4.0) bcround — 任意精度数値を丸める 説明 function bcround ( string $num , int $precision = 0 , RoundingMode $mode = RoundingMode::HalfAwayFromZero ): ... "9" 例4 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.5 ... 5 , 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 , ...
https://man.mtool.work/php/8.3/function.bcround.html
任意精度数値を丸める 9224
« 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 ... new BcMath\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 , RoundingMode :: 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 ... , RoundingMode :: 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 , Roun ...
https://man.mtool.work/php/8.3/bcmath-number.round.html
任意精度数値を丸める 9224
« 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 ... new BcMath\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 , RoundingMode :: 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 ... , RoundingMode :: 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 , Roun ...
https://man.mtool.work/php/8.3/bcmath-number.round.html
NumberFormatter クラス 8215
« Collator::sortWithSortKeys NumberFormatter::create » PHP Manual intl NumberFormatter クラス 検索 NumberFormatter クラス (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) はじめに プログラムで数値を保存したり操作したりする際には、 ロケール ... 場合は、 ルールベースの数値フォーマッタを使用します。 クラス概要 class NumberFormatter { /* 定数 */ public const int PATTERN_DECIMAL ; public const int DECIMAL ; public const int DECIMAL_COMPACT_SHORT ; public const int DECIMAL_COMPACT_LONG ; public const ... ; public const int PAD_AFTER_SUFFIX ; public const int PARSE_INT_ONLY ; public const int GROUPING_USED ; public const int DECIMAL_ALWAYS_SHOWN ; public const int MAX_INTEGER_DIGITS ; public const int MIN_INTEGER_DIGITS ; public const int INTEGER_DIGITS ... ; public const int CURRENCY_CODE ; public const int DEFAULT_RULESET ; public const int PUBLIC_RULESETS ; public const int DECIMAL_SEPARATOR_SYMBOL ; public const int GROUPING_SEPARATOR_SYMBOL ; public const int PATTERN_SEPARATOR_SYMBOL ; public const i ...
https://man.mtool.work/php/8.3/class.numberformatter.html
NumberFormatter クラス 8215
« Collator::sortWithSortKeys NumberFormatter::create » PHP Manual intl NumberFormatter クラス 検索 NumberFormatter クラス (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) はじめに プログラムで数値を保存したり操作したりする際には、 ロケール ... 場合は、 ルールベースの数値フォーマッタを使用します。 クラス概要 class NumberFormatter { /* 定数 */ public const int PATTERN_DECIMAL ; public const int DECIMAL ; public const int DECIMAL_COMPACT_SHORT ; public const int DECIMAL_COMPACT_LONG ; public const ... ; public const int PAD_AFTER_SUFFIX ; public const int PARSE_INT_ONLY ; public const int GROUPING_USED ; public const int DECIMAL_ALWAYS_SHOWN ; public const int MAX_INTEGER_DIGITS ; public const int MIN_INTEGER_DIGITS ; public const int INTEGER_DIGITS ... ; public const int CURRENCY_CODE ; public const int DEFAULT_RULESET ; public const int PUBLIC_RULESETS ; public const int DECIMAL_SEPARATOR_SYMBOL ; public const int GROUPING_SEPARATOR_SYMBOL ; public const int PATTERN_SEPARATOR_SYMBOL ; public const i ...
https://man.mtool.work/php/8.3/class.numberformatter.html
The MongoDB\BSON\Decimal128 class 7975
« MongoDB\BSON\VectorType MongoDB\BSON\Decimal128::__construct » PHP Manual MongoDB\BSON The MongoDB\BSON\Decimal128 class 検索 The MongoDB\BSON\Decimal128 class (mongodb >=1.2.0) はじめに BSON type for the » Decimal128 floating-point forma ... t , which supports numbers with up to 34 decimal digits (i.e. significant digits) and an exponent range of -6143 to +6144. Unlike the double BSON type (i.e. float in PHP), ... which only stores an approximation of the decimal values, the decimal data type stores the exact value. For example, MongoDB\BSON\Decimal128('9.99') has a precise value of ... 9.99 where as a double 9.99 would have an approximate value of 9.9900000000000002131628…. 注意 : MongoDB\BSON\Decimal128 is only compatible with MongoDB 3.4+. Attempting to use the BSON type with an earlier version of MongoDB will result in ...
https://man.mtool.work/php/8.3/class.mongodb-bson-decimal128.html
The MongoDB\BSON\Decimal128 class 7917
« MongoDB\BSON\VectorType MongoDB\BSON\Decimal128::__construct » PHP Manual MongoDB\BSON The MongoDB\BSON\Decimal128 class 検索 The MongoDB\BSON\Decimal128 class (mongodb >=1.2.0) はじめに BSON type for the » Decimal128 floating-point forma ... t , which supports numbers with up to 34 decimal digits (i.e. significant digits) and an exponent range of -6143 to +6144. Unlike the double BSON type (i.e. float in PHP), ... which only stores an approximation of the decimal values, the decimal data type stores the exact value. For example, MongoDB\BSON\Decimal128('9.99') has a precise value of ... 9.99 where as a double 9.99 would have an approximate value of 9.9900000000000002131628…. 注意 : MongoDB\BSON\Decimal128 is only compatible with MongoDB 3.4+. Attempting to use the BSON type with an earlier version of MongoDB will result in ...
https://man.mtool.work/php/8.3/class.mongodb-bson-decimal128.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT