Convert between distance units

Supported in: Batch, Streaming

Expression categories: Numeric

Declared arguments

  • Amount of current unit - no description
    Expression<DefiniteNumeric>
  • Current unit - The unit prior to conversion.
    Enum<Centimeter, Data mile, Decameter, Decimeter, Foot, Hectometer, Inch, Kilometer, Meter, Mile, and more ...>
  • Target unit - The desired unit after conversion.
    Enum<Centimeter, Data mile, Decameter, Decimeter, Foot, Hectometer, Inch, Kilometer, Meter, Mile, and more ...>

Output type: Double

Examples

Example 1: Base case

Argument values:

  • Amount of current unit: kilometers
  • Current unit: kilometer
  • Target unit: meter
kilometersOutput
11000.0

Example 2: Null case

Argument values:

  • Amount of current unit: kilometers
  • Current unit: kilometer
  • Target unit: meter
kilometersOutput
nullnull