Arithmetic

Arithmetics are traditional number operations such as addition, subtraction, multiplication, division and more derivatives.

Operators
The Lua core is capable of the following arithmetics:

Addition:  Adds two numbers to each other. For example:  returns Subtraction:  Subtracts a number from an other number. For example:  returns Multiplication:  Multiplies a number by an other number. For example:  returns Division:  Divides a number by an other number. For example:  returns Negation:  Negates a number. For example:  returns Exponentiation:  Raises a number by the power of an other number. For example:  returns Modulus:  Gets the remainder of a number when dividing by another number. For example:  returns

Special Cases
print( 1 / 0 ) inf

print( - 1 / 0 ) -inf

print( 0 / 0 ) nan

print( 0 / 0 / 0 ) -- nan / inf -inf

print( 1 / ( 1 / 0 ) ) --  1 / inf 0

print( 0 ^ 0 ) 1

print( ( 1 / 0 ) - ( 1 / 0 ) ) --  inf - inf nan