Gentee Programming Language > Documentation > Syntax Download documentation

Arithmetic Operators

The following arithmetic operators are applied in the language:
 
+Addition
-Subtraction
*Multiplication
/Division
%Modulo
-(un)Unary negation operator

Dividing one integer into another, any fractional portion is truncated. The following operation a % b returns the remainder (modulus) obtained by dividing a into b or 0, if result is a whole number. The modulus operator % is only used to perform division of two integers.
To indicate the negative value of an expression, you can use the unary negation operator -.

See also

    Table Of Operator Precedence


 Copyright © 2004-2006 Gentee Inc. All rights reserved.