NumberFormatter class example

It is generated by NumberFormatter.php

ko_KR

Outout
Predefined Constant
Constant Value(int)

12345.52

\NumberFormatter::PATTERN_DECIMAL

0

12,345.52

\NumberFormatter::DECIMAL

1

₩12,346

\NumberFormatter::CURRENCY

2

1,234,552%

\NumberFormatter::PERCENT

3

1.234552E4

\NumberFormatter::SCIENTIFIC

4

만 이천삼백사십오점오이

\NumberFormatter::SPELLOUT

5

12,346번째

\NumberFormatter::ORDINAL

6

12,346

\NumberFormatter::DURATION

7

12,345.52

\NumberFormatter::DEFAULT_STYLE

1

12345.52

\NumberFormatter::IGNORE

0

12345.52

\NumberFormatter::TYPE_DEFAULT

0

12,345.52

\NumberFormatter::TYPE_INT32

1

₩12,346

\NumberFormatter::TYPE_INT64

2

1,234,552%

\NumberFormatter::TYPE_DOUBLE

3

1.234552E4

\NumberFormatter::TYPE_CURRENCY

4

12345.52

\NumberFormatter::PARSE_INT_ONLY

0

12,345.52

\NumberFormatter::GROUPING_USED

1

₩12,346

\NumberFormatter::DECIMAL_ALWAYS_SHOWN

2

1,234,552%

\NumberFormatter::MAX_INTEGER_DIGITS

3

1.234552E4

\NumberFormatter::MIN_INTEGER_DIGITS

4

만 이천삼백사십오점오이

\NumberFormatter::INTEGER_DIGITS

5

12,346번째

\NumberFormatter::MAX_FRACTION_DIGITS

6

12,346

\NumberFormatter::MIN_FRACTION_DIGITS

7

12,345.52

\NumberFormatter::FRACTION_DIGITS

8

KRW 12,346

\NumberFormatter::GROUPING_SIZE

10

12,346 대한민국 원

\NumberFormatter::ROUNDING_MODE

11

₩12,346

\NumberFormatter::ROUNDING_INCREMENT

12

₩12,346

\NumberFormatter::FORMAT_WIDTH

13

1.2만

\NumberFormatter::PADDING_POSITION

14

1.2만

\NumberFormatter::SECONDARY_GROUPING_SIZE

15

₩12,346

\NumberFormatter::SIGNIFICANT_DIGITS_USED

16

1

\NumberFormatter::MIN_SIGNIFICANT_DIGITS

17

1

\NumberFormatter::MAX_SIGNIFICANT_DIGITS

18

12345.52

\NumberFormatter::POSITIVE_PREFIX

0

12,345.52

\NumberFormatter::POSITIVE_SUFFIX

1

₩12,346

\NumberFormatter::NEGATIVE_PREFIX

2

1,234,552%

\NumberFormatter::NEGATIVE_SUFFIX

3

1.234552E4

\NumberFormatter::PADDING_CHARACTER

4

만 이천삼백사십오점오이

\NumberFormatter::CURRENCY_CODE

5

12,346번째

\NumberFormatter::DEFAULT_RULESET

6

12,346

\NumberFormatter::PUBLIC_RULESETS

7

12345.52

\NumberFormatter::DECIMAL_SEPARATOR_SYMBOL

0

12,345.52

\NumberFormatter::GROUPING_SEPARATOR_SYMBOL

1

₩12,346

\NumberFormatter::PATTERN_SEPARATOR_SYMBOL

2

1,234,552%

\NumberFormatter::PERCENT_SYMBOL

3

1.234552E4

\NumberFormatter::ZERO_DIGIT_SYMBOL

4

만 이천삼백사십오점오이

\NumberFormatter::DIGIT_SYMBOL

5

12,346번째

\NumberFormatter::MINUS_SIGN_SYMBOL

6

12,346

\NumberFormatter::PLUS_SIGN_SYMBOL

7

12,345.52

\NumberFormatter::CURRENCY_SYMBOL

8

KRW

\NumberFormatter::INTL_CURRENCY_SYMBOL

9

KRW 12,346

\NumberFormatter::MONETARY_SEPARATOR_SYMBOL

10

12,346 대한민국 원

\NumberFormatter::EXPONENTIAL_SYMBOL

11

₩12,346

\NumberFormatter::PERMILL_SYMBOL

12

₩12,346

\NumberFormatter::PAD_ESCAPE_SYMBOL

13

1.2만

\NumberFormatter::INFINITY_SYMBOL

14

1.2만

\NumberFormatter::NAN_SYMBOL

15

₩12,346

\NumberFormatter::SIGNIFICANT_DIGIT_SYMBOL

16

12345.52

\NumberFormatter::ROUND_CEILING

0

₩12,346

\NumberFormatter::ROUND_DOWN

2

12,345.52

\NumberFormatter::ROUND_FLOOR

1

만 이천삼백사십오점오이

\NumberFormatter::ROUND_HALFDOWN

5

1.234552E4

\NumberFormatter::ROUND_HALFEVEN

4

12,346번째

\NumberFormatter::ROUND_HALFUP

6

1,234,552%

\NumberFormatter::ROUND_UP

3

12,345.52

\NumberFormatter::PAD_AFTER_PREFIX

1

1,234,552%

\NumberFormatter::PAD_AFTER_SUFFIX

3

12345.52

\NumberFormatter::PAD_BEFORE_PREFIX

0

₩12,346

\NumberFormatter::PAD_BEFORE_SUFFIX

2

Last updated