ezeio2:expref:operators

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ezeio2:expref:operators [2019-06-15 00:57] andrehezeio2:expref:operators [2021-06-08 16:35] (current) andreh
Line 1: Line 1:
-===== Expressions =====+===== Operators and Constants =====
  
 ==== Operators and constants ==== ==== Operators and constants ====
Line 11: Line 11:
 | / | Division | Divides a number with another | ''67/10'' (6.7) | | / | Division | Divides a number with another | ''67/10'' (6.7) |
 | %%^%% | Exponent | Raises a number to a power | ''10%%^%%3'' (1000) | | %%^%% | Exponent | Raises a number to a power | ''10%%^%%3'' (1000) |
-| % | Modulus | Reminder of division | ''2345%100'' (45) |+| % | Modulus | Remainder of division | ''2345%100'' (45) |
 | & | Binary AND | Binary AND | ''14&7'' (6) | | & | Binary AND | Binary AND | ''14&7'' (6) |
 | %%|%% | Binary OR | Binary OR | ''14%%|%%7'' (15) | | %%|%% | Binary OR | Binary OR | ''14%%|%%7'' (15) |
Line 21: Line 21:
 | %%<=%% | Less than or equal | Logical compare | ''10%%<=%%9'' (0) | | %%<=%% | Less than or equal | Logical compare | ''10%%<=%%9'' (0) |
 | == | Equal to | Logical compare | ''10==9'' (0) | | == | Equal to | Logical compare | ''10==9'' (0) |
-| && | Logical AND | Logical AND | ''10&&0'' (0) | +| && | Logical AND | Logical AND | ''10&&9'' (1) | 
-| %%||%% | Logical OR | Logical OR | ''10%%||%%0'' (1) |+| %%||%% | Logical OR | Logical OR | ''10%%||%%9'' (1) | 
 +| ! | Logical NOT | Logical invert | ''!(10==9)'' (1) | 
 +| !! | Make boolean | Forces result to be boolean | ''!!8'' (1) |
 | E | 10th power | Raise to 10th power | ''3.14E3'' (3140) | | E | 10th power | Raise to 10th power | ''3.14E3'' (3140) |
-| PI | Pi | Constant Pi | ''PI'' (3.14159...) |+| PI | π | Constant Pi | ''PI'' (3.14159...) |
 | E | e | Natural Logarithm | ''E'' (2.71828...) | | E | e | Natural Logarithm | ''E'' (2.71828...) |
 +| ? : | Conditional | (C)?(X):(Y) If C is true then X, else Y | ''(f(3)>100)?(f(4)):(f(5))'' |
  • ezeio2/expref/operators.1560560256.txt.gz
  • Last modified: 2019-06-15 00:57
  • by andreh