Cast to float

Cast to Float

Description

Converts a value to the float type.

Category

Transformation

Supported Field Types

  • text
  • int
  • boolean

Output Field Type

  • float

Arguments

None

Pseudo-code (Python)

def func(val):
    """
        val: original value
    """
    if val:
        return float(val)
    else:
        return None