Package org.projog.core.math.builtin


package org.projog.core.math.builtin
Provides arithmetic operators.
  • Classes
    Class
    Description
    abs - returns the absolute value of a numeric argument.
    + - performs addition.
    /\ - performs bitwise addition.
    \/ - bitwise 'or'.
    xor - bitwise 'exclusive or'.
    / - performs division.
    // - performs integer division.
    max - finds the maximum of two numbers.
    min - finds the minimum of two numbers.
    - - minus operator.
    mod - finds the remainder of division of one number by another.
    * - performs multiplication.
    ** - calculates the result of the first argument raised to the power of the second argument.
    random(X) Evaluate to a random integer i for which 0 =< i < X.
    rem - finds the remainder of division of one number by another.
    integer(X) - round X to the nearest integer value.
    << - left shift bits.
    >> - right shift bits.
    - - performs subtraction.