Negate method (number)

Returns the result of multiplying the this number by negative one.

Syntax

number.Negate

Returns a number with the value of number, but the opposite sign; zero if number is zero.

Example

{% Var number1 = 123 %}
{% Var number2 = -2.5 %}

Answers: {{ number1.Negate }},
         {{ number2.Negate }}

The above example would output: Answers: -123, 2.5