Absolute value function

Returns the absolute value for each value in a column. For example, the absolute value of -10 is 10.

Namespaces

  • math

  • decimal

Input

Numeric values

Output

Integer or Decimal values

Syntax

For non-decimal columns:

set-column :column math:abs(column)

For decimal values:

set-column :column decinal:abs(column)

Example

Returns the absolute value of each value in the test column.

set-column :test math:abs(test)

Created in 2020 by Google Inc.