CONST

CONST(x)[source]

Creates a Formula object representing a constant value.

The function determines the appropriate DataType based on the input type and returns a corresponding Formula instance.

Parameters:

x (bool | float | int | str | Operand) – The constant value to be converted into a Formula.

Returns:

A Formula object representing the given constant.

Return type:

Formula

Raises:

TypeError – If the input type is not supported.