Decimal component icon Decimal

The Decimal component allows you to capture decimal values. Decimals can be both, positive and negative. The smallest and largest possible values are 5e-324 and 1.7976931348623157e+308 respectively.

Since decimals are represented as 64-bit floating point values, they can represent very large numbers. However, it is very important to note that floating point arithmetic is not precise. For instance, the values 0.1 + 0.2 equates to 0.30000000000000004.

Appearance

Design Rendered
Decimal component rendered
Decimal component design

Attributes

Group Name Description

General

ID

This is a unique id for the component.

Label

The label attribute adds a label to the component, if not empty.

Label position

The position of the label, you can choose between Left or Top.

Label tooltip

When it is defined, a question mark icon appears in the component label. When the user hovers over it, it shows this text in a tooltip.

Value

The binding for the component. Use an appropriate expression to bind the component to its value and thus specify where the value is saved read. For example, use {{myVariableName}} to store the value of the component in a variable named myVariableName. Use prefixes to define the scope of the value, e.g., root. for referencing the root case to store the value in or parent. to store the value in the parent work item of the current one. For instance {{root.foo}} stores the value in the root case using a variable named foo. For more information please refer to the Flowable Forms section.

Default value

If a value is not set, the default value is used. Use an appropriate value; e.g., a text, a number, an id or a comma-separated list.

Description

The description attribute additionally adds a description to the component.

Visible

Boolean value or expression specifies whether the component is visible or hidden. This expression might include another value in the same form, for instance, use a checkbox bound to {{showAdditionalFields}} and use the very same expression as the visible attribute to show or hide the component according to the checked state of the checkbox. If you want only to show the component, if the form is not used as the init-form, you can use the expression {{root.id}} which evaluates to true only, if there is a current id which is not the id in a start form.

Ignored

If true the component is hidden and the value is not part of the payload.

Enabled

A Boolean value or expression specifies whether component is enabled or disabled.

Placeholder

The text that appears in the widget when there is no value.

Details

Fraction size

Defines the maximum number of decimal characters.

Format

Defines the format of the number with thousand and decimal separators.

Validation

Required

The required flag specifies whether entering a value for the component is mandatory or not.

Minimum

Minimum

The minimum value which can be entered in the number field. Optionally, for the runtime value an expression to be evaluated dynamically can be used.

Maximum

The maximum value which can be entered in the number field. Optionally, for the runtime value an expression to be evaluated dynamically can be used.

Error messages

Minimum

Specifies the error message to display if the value is smaller than the minimum value allowed.

Maximum

Specifies the error message to display if the value is larger than the maximum value allowed.

Documentation

Documentation

Documentation intended to explain concepts of its use for future reference.

Customization

Style class