--- title: "Floating number" slug: "core-number-value-editor" updated: 2026-04-16T09:59:35Z published: 2026-04-16T09:59:35Z canonical: "docs.lobstersoftware.com/core-number-value-editor" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Floating number > [!NOTE] > Resolver – Abstract > > - **Purpose:** Defines a static numerical value that is output either as an `Integer` or a `Double` value. > > > [!TIP] > > Tooltip > > > > - **Usage**: The resolver supplies the parameterised numerical value as an `Integer` or `Double` value. The *input value* is ignored. > > - **Parameter:** The only parameter is an input field that accepts numeric input with or without decimals. The integrated *stepper* generates integers with an offset of ±1 to the output value. Decimals are lost in the process. > > - **NOTE:** Integers outside the `Integer` value range (approx. `±2e9`) generate `Double` values as return value. ![images/download/attachments/128387156/image2023-1-13_11-14-34-version-1-modificationdate-1676010882594-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-1-13_11-14-34-version-1-modificationdate-1676010882594-api-v2.png) **IMPORTANT:** All resolvers for [Static values](/v1/docs/en/core-literal-value-resolver) ignore the *input value*. Within a resolver chain (see [Chained resolver](/v1/docs/en/core-chained-resolver)) this prevents the processing of all preceding resolvers (if any). The [Floating number](/v1/docs/en/core-number-value-editor) resolver returns a statically defined value that is treated either as an `Integer` value or as a `Double` value, depending on the numerical value entered. - Integers in the value range `-2147483648` to `2147483647` are returned as `Integer` `values`. - Non-integer values and integers outside the `Integer` value range are returned as a `Double`. For the context of the configuration, the parent data type "Number" (`Number`) is defined for the return value. **NOTE:** Specific return values are nevertheless always either `Double` or `Integer`, but also pass a [Check type](/v1/docs/en/core-check-type-rule) against the `Number` class. > [!NOTE] > **IMPORTANT:** Applicable decimal separator depends on browser settings > > --- > > Unlike what is usual in **Lobster Data Platform/Orchestration**, the *applicable decimal separator* for the [Floating number](/v1/docs/en/core-number-value-editor) resolver is not determined as localization for the [Current locale](/v1/docs/en/core-current-locale-resolver) (`[lobsterui,decimalSeparator]`) via the [Localization](/v1/docs/en/core-localization-entry) or applicable [Company specific localization](/v1/docs/en/core-owner-based-localization-overrides). Instead, the decimal separator applicable on the browser side (possibly with reference to the client operating system) is decisive for the input of decimal numbers in the [Floating number](/v1/docs/en/core-number-value-editor) resolver. ## Configuration The value in the input field can be changed either by direct input, pasting from the clipboard or via the *stepper* functionality. - The direct input accepts only digits, the *applicable decimal separator* (see above) and optionally a preceding minus sign as input. - Since validation takes place after each keystroke, previous entries may be lost if an unwanted character is entered at the position in question. - As long as the text field contains an invalid entry, which is marked by a red frame, further entries or adjustments to the previously entered string are possible. - If the input is still invalid when the configuration is saved, the `Double` error value `NaN` (*Not a Number*) is persisted instead of the input. - When pasting from the clipboard, the string contained in the input field after pasting is validated as a whole. - Both the period (.) and the comma (,) are evaluated as decimal separators if exactly one of these characters occurs exactly once. **IMPORTANT:** Thousands separators should therefore never be included in text pasted from the clipboard. They are either misinterpreted as decimal separators or completely prevent validation as a number. - In contrast to the character-by-character direct input, the exponential notation (e.g. `-2.5e-3` for `-0.0025`) is also supported during insertion, if necessary. - If the updated string cannot be validated, a red frame around the input field indicates this. - The *stepper* functionality allows incremental changes of an existing value in steps of ±1. **CAUTION****:** The *stepper* processes only the integer component of the output value. If the output value contains decimals, these are ignored. Decimals are "lost" without any rounding. The result is always an integer. - The existing value can be increased/decreased step by step by clicking the up/down buttons on the right side of the text field. - Alternatively, the cursor keys (up/down) or, if necessary, the mouse wheel can be used for the same effect as long as the input field has the focus. ## Example In the context of an event handling, a percentage markup is added to an entry in a `budget` variable as a "Unit number". As a rule, a specific "safety margin" is defined as a `Double` value via a further variable (`contingency`). In case this variable does not contain a value, a default surcharge of 25% (as decimal number: `0,25`) applies. Configuration: | The [Set value](/v1/docs/en/core-set-value-actor) event action shown on the right scales the value of the `budget` variable according to the formula: `budget := budget*(1+markUp)` It is assumed that the `budget` variable already contains a "Unit number". A [Calculate value](/v1/docs/en/core-calculate-value-resolver) resolver is used on the right side of the assignment, which defines the right side of this formula: - As value for the [Variable](/v1/docs/en/core-storage-value) `markUp`, which is only valid in the calculation expression, either the safety markup specified in the `contingency` variable is used, or – if this variable returns "no value" (`$null`) – the default markup of 25%. - In the concatenated [Default value](/v1/docs/en/core-default-value-resolver) resolver, the [Floating number](/v1/docs/en/core-number-value-editor) resolver is used for the **Default** **value** parameter, via which the default markup can be statically defined as the value `0,25`. | ![images/download/attachments/128387156/image2023-1-13_15-32-17-version-1-modificationdate-1676010882582-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-1-13_15-32-17-version-1-modificationdate-1676010882582-api-v2.png) | | --- | --- |