Results of 1 - 10 of about 66 for NumberFormatter (0.005 sec.)
- NumberFormatter クラス 9931
- « Collator::sortWithSortKeys NumberFormatter::create » PHP Manual intl NumberFormatter クラス 検索 NumberFormatter クラス (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) はじめに プログラムで数値を保存したり操作したりする際には、 ロケール
... 12345.67 という数値の表記はアメリカでは "12,345.67"、 フランスでは "12 345,67"、そしてドイツでは "12.345,67" となります。 NumberFormatter クラスのメソッドを実行すると、 数値や通貨、パーセンテージなどの値をロケールに応じた形式にフォーマットすることができます。 ... NumberFormatter はロケールを考慮した処理を行うので、 ロケールごとに別の NumberFormatter を用意する必要があります。 NumberFormatter のメソッドは、浮動小数点数値のような数値を ロケールにあわせた文字列に変換します ... してフォーマッタを作成します。 これは、ロケールにあわせて数値を適切な書式にして通貨記号をつけた文字列を返します。 もちろん、NumberFormatter クラスは為替レートの変換などは考慮しません。 指定した通貨にかかわらず、出力される数値は同じものとなります。 つまり、ロケー ...
-
https://man.mtool.work/php/8.3/class.numberformatter.html
- NumberFormatter クラス 9903
- « Collator::sortWithSortKeys NumberFormatter::create » PHP Manual intl NumberFormatter クラス 検索 NumberFormatter クラス (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) はじめに プログラムで数値を保存したり操作したりする際には、 ロケール
... 12345.67 という数値の表記はアメリカでは "12,345.67"、 フランスでは "12 345,67"、そしてドイツでは "12.345,67" となります。 NumberFormatter クラスのメソッドを実行すると、 数値や通貨、パーセンテージなどの値をロケールに応じた形式にフォーマットすることができます。 ... NumberFormatter はロケールを考慮した処理を行うので、 ロケールごとに別の NumberFormatter を用意する必要があります。 NumberFormatter のメソッドは、浮動小数点数値のような数値を ロケールにあわせた文字列に変換します ... してフォーマッタを作成します。 これは、ロケールにあわせて数値を適切な書式にして通貨記号をつけた文字列を返します。 もちろん、NumberFormatter クラスは為替レートの変換などは考慮しません。 指定した通貨にかかわらず、出力される数値は同じものとなります。 つまり、ロケー ...
-
https://man.mtool.work/php/8.3/class.numberformatter.html
- 属性を設定する 8818
- « NumberFormatter::parseCurrency NumberFormatter::setPattern » PHP Manual NumberFormatter 属性を設定する 検索 NumberFormatter::setAttribute numfmt_set_attribute (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) NumberFormatter::setAttribut
... e -- numfmt_set_attribute — 属性を設定する 説明 オブジェクト指向型 public function NumberFormatter::setAttribute ( int $attribute , int | float $value ): bool 手続き型 function numfmt_set_attribute ( NumberFormatter $form ... れている数値属性を設定します。 数値属性の例としては、フォーマッタが作成する整数部の桁数などがあります。 パラメータ formatter NumberFormatter オブジェクト。 attribute 属性指定子。 数値属性 定数のいずれか。 value 属性の値。 戻り値 成功した場合に true を、失敗した場 ... 合に false を返します。 例 例1 numfmt_set_attribute() の例 <?php $fmt = numfmt_create ( 'de_DE' , NumberFormatter :: DECIMAL ); echo "Digits: " . numfmt_get_attribute ( $fmt , NumberFormatter :: MAX_FRACTION_DIGITS ). "\n" ; echo numfmt ...
-
https://man.mtool.work/php/8.3/numberformatter.setattribute.html
- 属性を設定する 8818
- « NumberFormatter::parseCurrency NumberFormatter::setPattern » PHP Manual NumberFormatter 属性を設定する 検索 NumberFormatter::setAttribute numfmt_set_attribute (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) NumberFormatter::setAttribut
... e -- numfmt_set_attribute — 属性を設定する 説明 オブジェクト指向型 public function NumberFormatter::setAttribute ( int $attribute , int | float $value ): bool 手続き型 function numfmt_set_attribute ( NumberFormatter $form ... れている数値属性を設定します。 数値属性の例としては、フォーマッタが作成する整数部の桁数などがあります。 パラメータ formatter NumberFormatter オブジェクト。 attribute 属性指定子。 数値属性 定数のいずれか。 value 属性の値。 戻り値 成功した場合に true を、失敗した場 ... 合に false を返します。 例 例1 numfmt_set_attribute() の例 <?php $fmt = numfmt_create ( 'de_DE' , NumberFormatter :: DECIMAL ); echo "Digits: " . numfmt_get_attribute ( $fmt , NumberFormatter :: MAX_FRACTION_DIGITS ). "\n" ; echo numfmt ...
-
https://man.mtool.work/php/8.3/numberformatter.setattribute.html
- 数値フォーマッタを作成する 8690
- « NumberFormatter NumberFormatter::format » PHP Manual NumberFormatter 数値フォーマッタを作成する 検索 NumberFormatter::create numfmt_create NumberFormatter::__construct (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) NumberFormatter::cr
... eate -- numfmt_create -- NumberFormatter::__construct — 数値フォーマッタを作成する 説明 オブジェクト指向型 (メソッド) public static function NumberFormatter::creat ... e ( string $locale , int $style , ? string $pattern = null ): ? NumberFormatter 手続き型 function numfmt_create ( string $locale , int $style , ? string $pattern = null ): ? NumberFormatter オブジェクト ... 指向型 (コンストラクタ): public function NumberFormatter::__construct ( string $locale , int $style , ? string $pattern = null ) 数値フォーマッタを作成します。 パラメータ locale 数 ...
-
https://man.mtool.work/php/8.3/numberformatter.create.html
- 数値フォーマッタを作成する 8661
- « NumberFormatter NumberFormatter::format » PHP Manual NumberFormatter 数値フォーマッタを作成する 検索 NumberFormatter::create numfmt_create NumberFormatter::__construct (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) NumberFormatter::cr
... eate -- numfmt_create -- NumberFormatter::__construct — 数値フォーマッタを作成する 説明 オブジェクト指向型 (メソッド) public static function NumberFormatter::creat ... e ( string $locale , int $style , ? string $pattern = null ): ? NumberFormatter 手続き型 function numfmt_create ( string $locale , int $style , ? string $pattern = null ): ? NumberFormatter オブジェクト ... 指向型 (コンストラクタ): public function NumberFormatter::__construct ( string $locale , int $style , ? string $pattern = null ) 数値フォーマッタを作成します。 パラメータ locale 数 ...
-
https://man.mtool.work/php/8.3/numberformatter.create.html
- 数値をパースする 8633
- « NumberFormatter::getTextAttribute NumberFormatter::parseCurrency » PHP Manual NumberFormatter 数値をパースする 検索 NumberFormatter::parse numfmt_parse (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) NumberFormatter::parse -- numfmt_pa
... rse — 数値をパースする 説明 オブジェクト指向型 public function NumberFormatter::parse ( string $string , int $type = NumberFormatter::TYPE_DOUBLE , int &$offset = null ): int | float | false 手続き型 f ... unction numfmt_parse ( NumberFormatter $formatter , string $string , int $type = NumberFormatter::TYPE_DOUBLE , int &$offset = null ): int | float | false 現在の ... フォーマット規則を使用して、文字列を数値にパースします。 パラメータ formatter NumberFormatter オブジェクト。 string 数値としてパースする文字列。 type 使用する フォーマット形式 。デフォルトでは NumberFormatter::TYPE_D ...
-
https://man.mtool.work/php/8.3/numberformatter.parse.html
- 数値をパースする 8633
- « NumberFormatter::getTextAttribute NumberFormatter::parseCurrency » PHP Manual NumberFormatter 数値をパースする 検索 NumberFormatter::parse numfmt_parse (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) NumberFormatter::parse -- numfmt_pa
... rse — 数値をパースする 説明 オブジェクト指向型 public function NumberFormatter::parse ( string $string , int $type = NumberFormatter::TYPE_DOUBLE , int &$offset = null ): int | float | false 手続き型 f ... unction numfmt_parse ( NumberFormatter $formatter , string $string , int $type = NumberFormatter::TYPE_DOUBLE , int &$offset = null ): int | float | false 現在の ... フォーマット規則を使用して、文字列を数値にパースします。 パラメータ formatter NumberFormatter オブジェクト。 string 数値としてパースする文字列。 type 使用する フォーマット形式 。デフォルトでは NumberFormatter::TYPE_D ...
-
https://man.mtool.work/php/8.3/numberformatter.parse.html
- テキストの属性を取得する 8590
- « NumberFormatter::getSymbol NumberFormatter::parse » PHP Manual NumberFormatter テキストの属性を取得する 検索 NumberFormatter::getTextAttribute numfmt_get_text_attribute (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) NumberFormatter::g
... etTextAttribute -- numfmt_get_text_attribute — テキストの属性を取得する 説明 オブジェクト指向型 public function NumberFormatter::getTextAttribute ( int $attribute ): string | false 手続き型 function numfmt_get_text_attribute ( NumberFormatter $format ... ックスなどがあります。 属性が理解できない場合は、エラー U_UNSUPPORTED_ERROR が発生します。 ルールベースのフォーマッタでは、 NumberFormatter::DEFAULT_RULESET および NumberFormatter::PUBLIC_RULESETS のみが使用できます。 パラメータ formatter NumberFormatter オブジェ ... 性の値、あるいはエラー時に false を返します。 例 例1 numfmt_get_text_attribute() の例 <?php $fmt = numfmt_create ( 'de_DE' , NumberFormatter :: DECIMAL ); echo "Prefix: " . numfmt_get_text_attribute ( $fmt , NumberFormatter :: NEGATIVE_PREFIX ). "\n" ; echo numfm ...
-
https://man.mtool.work/php/8.3/numberformatter.gettextattribute.html
- テキストの属性を取得する 8590
- « NumberFormatter::getSymbol NumberFormatter::parse » PHP Manual NumberFormatter テキストの属性を取得する 検索 NumberFormatter::getTextAttribute numfmt_get_text_attribute (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) NumberFormatter::g
... etTextAttribute -- numfmt_get_text_attribute — テキストの属性を取得する 説明 オブジェクト指向型 public function NumberFormatter::getTextAttribute ( int $attribute ): string | false 手続き型 function numfmt_get_text_attribute ( NumberFormatter $format ... ックスなどがあります。 属性が理解できない場合は、エラー U_UNSUPPORTED_ERROR が発生します。 ルールベースのフォーマッタでは、 NumberFormatter::DEFAULT_RULESET および NumberFormatter::PUBLIC_RULESETS のみが使用できます。 パラメータ formatter NumberFormatter オブジェ ... 性の値、あるいはエラー時に false を返します。 例 例1 numfmt_get_text_attribute() の例 <?php $fmt = numfmt_create ( 'de_DE' , NumberFormatter :: DECIMAL ); echo "Prefix: " . numfmt_get_text_attribute ( $fmt , NumberFormatter :: NEGATIVE_PREFIX ). "\n" ; echo numfm ...
-
https://man.mtool.work/php/8.3/numberformatter.gettextattribute.html