KRASCHE
&
BYRNE
         ELZED  HOME       NEWS       DOCS       DOWNLOADS       LICENSING       SUPPORT       FAQ       ABOUT  US

What's An Elzed?
Features
Licensing
Downloads
Documentation
Elzed News
    ELZED 
 Documentation 
 The Details 
 Internal Operators 

Arithmetic Operators

Elzed supports the following arithmetic operators:

addition

first + second

Returns the sum of two numeric operands.

division

first / second

Returns the quotient of the first numeric operand divided by the second.

exponentiation

first ** second
first ^ second

Returns the result of the first numeric operand raised to the power of the second.

factorial

number !

Returns the factorialization of a numeric operand. For example, 6! is equal to 6*5*4*3*2*1 = 720.

modulo division

first % second

Returns the remainder of the first numeric operand divided by the second. For example, 5 % 2 = 1.

multiplication

first * second

Returns the product of two numeric parameters. If implied multiplication is active, you may omit the "*", but be sure to leave a space between the operands.

post-decrement

variable--

Subtracts 1 from the named variable, but returns the variable's original value. For example, if variable fred is equal to 5, fred-- sets fred to 4, but returns 5.

post-increment

variable++

Adds 1 to the named variable, but returns the variable's original value. For example, if variable fred is equal to 21, fred++ sets fred to 22, but returns 21.

pre-decrement

--variable

Subtracts 1 from the named variable, and returns the variable's new value. For example, if variable fred is equal to 5, --fred sets fred to 4, and returns 4.

pre-increment

++variable

Adds 1 to the named variable, and returns the variable's new value. For example, if variable fred is equal to 5, ++fred sets fred to 6, and returns 6.

subtraction

first - second

Returns the difference between two numeric operands.

unary minus (negation)

-number

Returns the negative of the numeric operand.

unary plus (positive)

+number

This is a no-op, provided only for grammatical completeness.



  Copyright  ©  MMXXIV  by  R R Le Cropane   •   All Rights Reserved   •   Terms of Use   •   Privacy Policy