Template Patterns for Numeric Formatting

Pattern Description

9

Value with the specified number of digits

0

Value with leading zeros

. (period)

Decimal point

, (comma)

Group (thousand) separator

PR

Negative value in angle brackets

S

Sign anchored to number (uses locale)

L

Currency symbol (uses locale)

D

Decimal point (uses locale)

G

Group separator (uses locale)

MI

Minus sign in specified position (if number < 0)

PL

Plus sign in specified position (if number > 0)

SG

Plus/minus sign in specified position

RN

Roman numeral (input between 1 and 3999)

TH or th

Ordinal number suffix

V

Shift specified number of digits (see notes)

EEEE

Scientific notation (not implemented yet)

Usage