Basic - additive inverse: -

operator negative sign is used to change the sign of expressions. it works as a negation: if the expression value is positive then the result will be negative, and if the expression is negative then the result will be positive.

-

Description

- expression
Used keywords: -

Input


Output

compatible programing languages:
Visual Basic .NET | FreeBASIC

Examples

Basic

additive inverse the possible of use:
xmin = -32768
 ymax = 32767
Dim x As integer= -1234        ' x = -1234
Dim y As integer= -(1500 mod 60)' y = -25
y = CInt((x * y))    ' z = 30850

Basic

Other pieces of example codes:
c=-1
-1
a or -1
Dim y As long= -(15123 \ 70)

you can find it in the following collections: arithmetic operators
Languages: en hu cz sk