Negate

Supported in: Batch, Streaming

Expression categories: Numeric

Declared arguments

  • Expression - Expression to be negated.
    Expression<Numeric>

Output type: Numeric

Examples

Example 1: Base case

Description: Negating decimal Argument values:

  • Expression: 10.0

Output: -10.0


Example 2: Base case

Description: Negating double Argument values:

  • Expression: 1234.0

Output: -1234.0


Example 3: Base case

Description: Negating int Argument values:

  • Expression: 1234

Output: -1234


Example 4: Base case

Description: Negating long Argument values:

  • Expression: 1234

Output: -1234


Example 5: Base case

Description: Negating short Argument values:

  • Expression: 1

Output: -1