Float (Decimal) Number

Overview #

Provides a decimal number input box.

Field Type Parameters: #

  1. Decimals (optional) – Number of digits to the right of the decimal point (the scale). Must be no larger than the Precision number of digits.
    • Default: 2
    • Min: 1
    • Max: 30
  2. Precision (optional) – Maximum number of digits (the precision).
    • Default: 20
    • Min: 1
    • Max: 65
  3. Smart Input (optional) – Allows input without pressing the decimal point key. Example: to type [12.67] just type [1267]. The decimal point will be placed automatically.
    • (No – default)
    • smart: Yes

Value Processing Parameters: #

Basic usage:

{{ FieldName }}

Usage with parameters:

{{ FieldName(Number of decimals, Decimal Separator, Thousand Separator) }}
  1. Number of decimals (optional) – Number of decimal places to display. Adds trailing zeros if needed (useful for formatting currency).
    • Default:
    • Max: 30
  2. Decimal Separator (optional) – Character to use as the decimal separator, e.g., ‘,’ or ‘.’
  3. Thousand Separator (optional) – Character to use as the thousand separator, e.g., ‘,’ or ‘.’ or ‘ ‘ (space)

Example:

{{ FieldName(0,".",",") }}


Pure Value (Unprocessed): #

Example:

{{ FieldName.value }}


Edit Record Parameters: #

Parameters for configuring the input element for decimal numbers.

Basic usage:

{{ FieldName.edit }}

Usage with parameters:

{{ FieldName.edit(CSS Class, Attributes) }}
  1. CSS Class (optional) – Name(s) of the CSS class(es).
  2. Attributes (optional) – Optional attributes such as: disabled, onclick, onchange, etc.

Example:

{{ FieldName.edit("inputboxClass","readonly='readonly'") }}


What are your feelings

Leave a Reply

Updated on January 9, 2025