Package org.projog.core.math.builtin
Provides arithmetic operators.
-
Class Summary Class Description Abs abs- returns the absolute value of a numeric argument.Add +- performs addition.BitwiseAnd /\- performs bitwise addition.BitwiseOr \/- bitwise 'or'.BitwiseXor xor- bitwise 'exclusive or'.Divide /- performs division.IntegerDivide //- performs integer division.Max max- finds the maximum of two numbers.Min min- finds the minimum of two numbers.Minus -- minus operator.Modulo mod- finds the remainder of division of one number by another.Multiply *- performs multiplication.Power **- calculates the result of the first argument raised to the power of the second argument.Random random(X)Evaluate to a random integer i for which 0 =< i < X.Remainder rem- finds the remainder of division of one number by another.Round integer(X)- round X to the nearest integer value.ShiftLeft <<- left shift bits.ShiftRight >>- right shift bits.Subtract -- performs subtraction.