The Convert to Number block for Nodestly workflows converts a value into numeric form.
Use it when
Convert finite numbers, booleans, or valid decimal text into one finite number.
Inputs and outputs
- Value —
any, required. - Number — output
number.
Controls
This object has no hidden settings; behavior is fully determined by connected input.
Rules
Accepted forms are a finite number, boolean (false=0, true=1), or valid decimal text without surrounding whitespace. Hexadecimal, separators, empty text, structured values, NaN, and infinity fail.
Example
Text 12.50 becomes number 12.5; boolean true becomes 1.
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.
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 | any | yes |
| Output | result — Number | number | on success |
