Description
Formats a Number from an input value and provides a formatted number that can be used for presentation.
Usage
You may need to format a number input into a specific format. You could display a number supplied from the Number Slider form element in a Display Form activity and format it using the Format Number activity.
Inputs
|
|
Required
Type: Number
The number to format.
|
|
|
Optional
Type: "number" | "fixed-point" | "currency" | "accounting" | "percent" | String
The way the number is to be formatted, or a custom format string. Default is "number".
number
|
A localized representation of a number with a decimal separator and group separators (e.g. "12,345.67", "-42" for en-US locale).
|
fixed-point
|
A localized representation of a number with a decimal separator (e.g. "12345.67", "-42" for en-US locale).
|
currency
|
A localized representation of a monetary amount in a specific currency (e.g. "$123.45" for USD, "£123.45" for GBP for en-US locale).
|
accounting
|
This is the same as "currency", except that in many locales, negative values may be displayed in parentheses instead of using a "-" sign.
|
percent
|
A localized representation of a percentage (e.g. 0.99 is "99%" in the en-US locale).
|
(other)
|
Any other value is assumed to be a format string.
The .NET version of Workflow (Workflow Server / VertiGIS Studio Mobile / VertiGIS Studio Desktop for ArcGIS Pro) supports both Standard numeric format strings and Custom numeric format strings.
The TypeScript version of Workflow (VertiGIS Studio Web / ArcGIS Experience Builder) supports Custom numeric format strings.
|
|
|
|
Optional
Type: Number
The number of decimal places to show.
|
|
|
Optional
Type: String
The currency to use when the format is "currency" or "accounting". Default is "USD".
|
Outputs
|
|
Type: String
The number formatted as per the `format` input. The current device (or browser) locale is used.
|
Properties
For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.
Connectivity Requirements
This activity works when the device has intermittent connectivity to the network.