CAST A NUMBER

Casts a scalar text value to a numeric type (integer or float). Use this worker when a downstream step requires a strongly-typed number but the pipeline carries the value as a string.

When to use

Classification: process.

Tagged: cast, float, integer, numeric, scalar, text, type_conversion.

Inputs

Label ID Type Default Required Description
Text To Cast texttocast scalar   The scalar text value to be cast (e.g. “42” or “3.14”); leave blank if the value will be wired in dynamically at runtime.
Cast Type casttype string integer   Target numeric type for the cast — choose “integer” to truncate to a whole number or “float” to preserve decimal precision; defaults to “integer”.

Outputs

Label ID Type Description
text_cast_output_1 text_cast_output_1 scalar The input value re-emitted as a typed scalar of the requested numeric kind (integer or float).

Disciplines

  • data.dataset.transform

Auto-generated from transformation schema. Worker id: text_cast. Schema hash: 7a669c2033cc. Hand-curated docs in workerexamples/ override this page when present.