Format Character | Description and Associated Properties |
---|---|
c, C | Currency format. CurrencyNegativePattern, CurrencyPositivePattern, CurrencySymbol, CurrencyGroupSizes, CurrencyGroupSeparator, CurrencyDecimalDigits, CurrencyDecimalSeparator. |
d, D | Decimal format. |
e, E | Scientific (exponential) format. |
f, F | Fixed-point format. |
g, G | General format. |
n, N | Number format. NumberNegativePattern, NumberGroupSizes, NumberGroupSeparator, NumberDecimalDigits, NumberDecimalSeparator. |
r, R | Roundtrip format, which ensures that numbers converted to strings will have the same value when they are converted back to numbers. |
x, X | Hexadecimal format. |