# Negate

### Description

Negate a Scalar\<Event>

### -Number|Event

```java
-Scalar<Number|Event> : Scalar<Number>
-Vector<Number|Event> : Vector<Number>
-GroupedScalar<Number|Event> : GroupedScalar<Number>
-GroupedVector<Number|Event> : GroupedVector<Number>
```

An argument of type Scalar\<Event> prefixed by a - negates the value of the Event.

If it is a Vector, GroupedScalar or GroupedVector, then the operation is performed on each value, and results in another Vector, GroupedScalar or GroupedVector.

### Examples

Calculating 3 divided by 2 results in 1.5

```java
-3
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.moost.io/platform-manual/rules/rule-language/operations/negate.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
