The Format Percentage block for Nodestly workflows applies percentage formatting to a value.
Use it when
Format a ratio or already-scaled percentage with explicit decimals and locale separators.
Inputs and outputs
- Value —
number, required. - Decimals —
number, optional. - Formatted percentage — output
text.
Controls
- Locale — default
en-us; choices:en-us,nl-nl. - Grouping — default
true; choices:true,false. - Input mode — default
ratio; choices:ratio,percentage.
Rules
Ratio mode multiplies Value by 100; Percentage mode formats Value unchanged. Decimals, grouping, locale separators, finite-range checks, and text output are explicit.
Example
Ratio 0.125 with one decimal returns 12.5% in English locale.
Failure behavior
Missing inputs, wrong connector values, unsafe records, unsupported values, cycles, unsupported modes, and size-limit violations stop the workflow and mark this block. Correct the highlighted connector or setting, then run again. Inputs are never changed.
Exact settings reference
These are the saved settings and defaults. If a value is connected to the matching input, that connected value is used.
| ID | Setting | Control | Default | Bounds/options |
|---|---|---|---|---|
locale | Locale | toggle | en-us | options: English (US) (en-us), Dutch (NL) (nl-nl) |
grouping | Grouping | toggle | true | options: On (true), Off (false) |
inputMode | Input mode | toggle | ratio | options: Ratio (ratio), Percentage (percentage) |
Errors and recovery
When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.
Connector data types
The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.
| Direction | Connector | Type | Required |
|---|---|---|---|
| Input | value — Value | number | yes |
| Input | decimals — Decimals | number | no |
| Output | result — Formatted percentage | text | on success |
