Skip to main content

MINUS

Negates a numeric value.

Syntax

MINUS( <x> )

Aliases

Examples

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
└───────────────────────────────────────────────────────────────────────────────────┘
Did this page help you?
Yes
No
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today