Square function

Raises each value in the column to the power of 2.

Namespaces

  • math

  • decimal

Input

Non-decimal numeric values

Output

Double or Decimal values

Syntax

For non-decimal columns:

set-column :column math:pow(column, 2)

For decimal columns:

set-column :column decimal:pow(column, 2)

Example

Raises each value in the test column to the power of 2.

set-column :test math:pow(test, 2)

Created in 2020 by Google Inc.