# Numeric control

### How to use the numeric control

* **Decimal Separator:** Typically represented by a comma (,) or a dot (.), it distinguishes the integer part from the fractional part in decimal numbers, ensuring clarity and consistency in numerical data handling, e.g. 1.200 or 1,200
* **Min Value and Max Value**: These parameters define the lower and upper limits within which numerical values are accepted or constrained, ensuring data falls within specified boundaries for accurate processing and validation.
* **Maximum Fraction Digits:** refers to the maximum number of decimal digits allowed to represent the fractional part of a numerical value. In other words, it determines the precision of the fractional portion of a number. For example, if set to 4, the value will display up to four decimal places. The parameter typically ranges between 0 and 20, with the default value being 4, unless otherwise specified. Adjusting this parameter enables fine control over the precision of numerical values, ensuring they are displayed or processed accurately according to application requirements.
* **Prefix:** refers to a string of characters placed before a numerical value. It is often used for currency symbols or other indicators to provide context or denote a specific unit of measurement. For instance, a prefix of "$" signifies a monetary value in dollars, while "€" denotes euros. Adding a prefix allows for clear identification and differentiation of numeric values, enhancing readability and comprehension for users.
* **Suffix:** refers to a string of characters appended to the end of a numerical value. Commonly used in financial contexts or data representations, suffixes can include symbols like "/", "-", or other indicators denoting units or categories. For instance, a suffix of "%" signifies a percentage value, while "/" might denote a ratio. By adding a suffix, numeric values gain additional context or meaning, aiding interpretation and facilitating effective communication of data.

example of how will be created in the designer json:

```
 {
        "id": "fieldId",
        "label": "label",
        "code": "codeValue",
        "fieldType": "numeric",
        "type": "Field",
        "textProperties": {
          "id": "floating-center-title",
          "label": "label",
          "lineDirection": "center",
          "placeholder": "placeholder",
          "precision": "2"
        },
        "maximumFractionDigits": 2,
        "minValue": 0,
        "decimalScale": 2,
        "prefix": "$",
        "decimalSeparator": "Dot (.)"
      }
```

<figure><img src="/files/E2XmEJ9nHZXvHmWJO5mN" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://codenull.gitbook.io/dev/configurations/components/forms/fields/numeric-control.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
