neg (Math)

Returns the negative of the given value.

Arguments

number0
is an integer or real number.

Return values

number1
as an integer or real number, according to the argument type.

Example

2 neg print LF print 2.0 neg print
Output:
-2 -2.000000