Configure custom number decimals
Custom number decimals control how numerical values are displayed by defining the number of decimal places and the decimal separator. This ensures numerical values are displayed in the required format. You can select Number Custom Decimals when the predefined decimal formatter options in Formatter do not provide sufficient precision/control.
|
Configuration applies to: |
Business use cases
Custom number decimal formatting ensures consistent numeric display. Key scenarios include:
-
Financial data display: Control decimal precision for prices, costs, or totals.
-
Measurement accuracy: Display numerical values with appropriate precision for technical or scientific data.
-
Regional formatting: Adapt decimal separators to match locale-specific conventions or integration requirements.
Procedure
The following procedure uses the example of a purchase order summary to demonstrate formatting displayed numerical values such as prices, costs, and totals.
-
In the Application tree, select the numerical field to format, such as Unit Price, Tax Amount, or Order Total.
The field type must be Display. -
In the Settings/properties pane, select Formatter → Number Custom Decimals.
-
In Decimal, define the number of decimal places to display.
Example: Set Decimals to
2for the Unit Price field.Result: A value of
12.5is displayed as12.50.Example: Set Decimals to
4for a Measurement Value field.Result: A value of
3.141592is displayed as3.1416. -
In Decimal Separator, select how the decimal separator should be displayed:
-
Browser Default: Uses the user’s locale settings
Example:
1234.5is displayed according to the user’s locale (for example,1,234.50or1.234,50). -
Comma: Displays decimals using a comma.
Example:
1234.5is displayed as1.234,50. -
Point: Displays decimals using a point.
Example:
1234.5is displayed as1,234.50.
-
-
In the Shell bar, select Save.
-
In the Preview pane, confirm that the numerical values are displayed with the intended precision and separator.