docs
/
Take a product tour
Sign in
  1. Introduction
  2. Home
  3. Overview
  4. Getting started
  5. Explanation
  6. Component
  7. Slot
  8. Immersion
  9. Reference
    1. Introduction
    2. Playground
    3. Syntax
      1. Basics
      2. Durations
      3. Functions
          1. Overview
          2. Minus
          3. Plus
          4. Percent
          5. Addition
          6. Subtraction
          7. Multiplication
          8. Division
          9. Modulo
          10. Exponentiation
      4. Conditionals
    4. Conversions
    5. Context
    1. Reference
    2. CQL
  1. Expressions
  2. Operations
  3. Arithmetic

Minus operation

Learn how to negate a value.

The minus operation negates a numeric value. You can use it in scenarios where you need to change the sign of a number from positive to negative or vice versa.

You can use the minus operator by placing a - sign before a numeric value:

-/*<operand>*/
Try in Playground

Here is a practical example:

-42
Try in Playground
Previous
Overview
Next
Plus
  • Resources
  • Documentation
  • Blog
  • Newsletter
  • Support
  • Slack community
  • API status
  • Company
  • Careers
  • Contact us
  • Legal
  • Privacy policy
  • Terms of service
  • Language
© Croct 2025