Format Percentage

data · A190 · starter-package 7.0.1

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.

IDSettingControlDefaultBounds/options
localeLocaletoggleen-usoptions: English (US) (en-us), Dutch (NL) (nl-nl)
groupingGroupingtoggletrueoptions: On (true), Off (false)
inputModeInput modetoggleratiooptions: 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.

DirectionConnectorTypeRequired
Inputvalue — Valuenumberyes
Inputdecimals — Decimalsnumberno
Outputresult — Formatted percentagetexton success