Skip to content

Negates a numeric value.

func.minus( <x> )
func.minus(func.pi())
┌─────────────────────────┐
│ func.minus(func.pi()) │
├─────────────────────────┤
│ -3.141592653589793 │
└─────────────────────────┘
MINUS( <x> )
SELECT MINUS(PI()), NEG(PI()), NEGATE(PI()), SUBTRACT(PI());
┌───────────────────────────────────────────────────────────────────────────────────┐
│ minus(pi()) │ neg(pi()) │ negate(pi()) │ subtract(pi()) │
├────────────────────┼────────────────────┼────────────────────┼────────────────────┤
│ -3.141592653589793 │ -3.141592653589793 │ -3.141592653589793 │ -3.141592653589793 │
└───────────────────────────────────────────────────────────────────────────────────┘