ABS
Learn how to use the ABS numeric function in PlaidCloud Lakehouse. Returns the absolute value of x. Includes detailed syntax, examples, and usage reference.
Returns the absolute value of x.
Analyze Syntax
func.abs( <x> )
Analyze Examples
func.abs((- 5))
┌─────────────────┐
│ func.abs((- 5)) │
├─────────────────┤
│ 5 │
└─────────────────┘
SQL Syntax
ABS( <x> )
SQL Examples
SELECT ABS(-5);
┌────────────┐
│ abs((- 5)) │
├────────────┤
│ 5 │
└────────────┘