You can use this action to format a number to a desired string value. For example you can format a number to a currency or a decimal value.
Here is a lit of supported formats:
|
|
|
|
Format | Name | Description | Examples |
"C" or "c" | Currency | Result: A currency value. | 123.456 ("C", en-US) |
"D" or "d" | Decimal | Result: Integer digits with optional negative sign. | 1234 ("D") |
"E" or "e" | Exponential (scientific) | Result: Exponential notation. | 1052.0329112756 ("E", en-US) |
"F" or "f" | Fixed-point | Result: Integral and decimal digits with optional negative sign. | 1234.567 ("F", en-US) |
"G" or "g" | General | Result: The more compact of either fixed-point or scientific notation. | -123.456 ("G", en-US) |
"N" or "n" | Number | Result: Integral and decimal digits, group separators, and a decimal separator with optional negative sign. | 1234.567 ("N", en-US) |
"P" or "p" | Percent | Result: Number multiplied by 100 and displayed with a percent symbol. | 1 ("P", en-US) |
"R" or "r" | Round-trip | Result: A string that can round-trip to an identical number. | 123456789.12345678 ("R") |
"X" or "x" | Hexadecimal | Result: A hexadecimal string. | 255 ("X") |
# | Integer Value | Result: Number value without decimal points | 123.45 => 123 |
#,# | Comma Separated | Result: Comma Separated | 1234 => 1,234 |