Convert Value avatar

Convert Value

1 version
Open in App

Convert value

Converts one atomic type to another, following standard C++ type conversion rules.

Use this when

  • A downstream component expects a different atomic type than the one being emitted.
  • You need to bridge precision between an upstream integer source and a floating-point analytics step.
  • You want explicit, visible type coercion instead of coupling two components together.

What it does

Takes an atomic value of one type and emits the same value as a different atomic type. Conversion follows standard C++ fundamental-type conversion rules, so lossy conversions (e.g. DoubleInt32) truncate rather than round.

Inputs

TypeDescription
aAn atomic value of any base type.

Outputs

TypeDescription
bThe same value coerced to type b.

Parameters

This transformation takes no parameters. The target type is inferred from the downstream connection.

Works best with

  • Upstream sensor or source components that emit integer types.
  • Downstream analytics or model components that expect floats.

Caveats

  • Lossy conversions (e.g. DoubleInt32) silently truncate. Validate ranges upstream if this matters.
  • Only atomic types are supported — not records, tuples, unions, or lists.

Versions

  • 8a100228defaultlatestlinuxTransformation