FlexPivot provides the option to format and represent numeric data in various formats such as number, currency, scientific, and percentage. You can also use custom format so that the numbers appears the way you want.
Numeric | Formats the data as a number such as 1,235. You can specify the number of decimal places, and whether to use thousand separator (,) or not. |
Currency | Formats the data as currency. You can specify the number of decimal places. |
Percentage | Formats the data as percentage. You can specify the number of decimal places. |
Scientific | Formats the data in scientific notation. You can specify the number of decimal places. |
Custom | Applies a custom format to the data. |
You can format numeric data using the Format property and standard numeric format strings in code. Following enlisted are the accepted format strings to be used in code.
"N" or "n" | Numeric | Formats data as h numbers such as 1,k235. You can specify the number of decimal places and whether to use thousand separator (,) or not. |
"C" or "c" | Currency | Formats the data as currency. You can specify the number of decimal places. |
"P" or "p" | Percentage | Formats the data as percentage. You can specify the number of decimal places. |
"E" or "e" | Scientific | Formats the data in scientific notation. You can specify the number of decimal places. |
Non-standard numeric strings | Custom | Apply a custom format to the data. |
Use the following code to format numeric data in Currency format.