diff options
author | Fatih Kızmaz <barka_21@hotmail.com> | 2022-12-26 18:35:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-26 18:35:27 +0300 |
commit | 3a18c7d47fdb64fd93963386da89df1170da80ed (patch) | |
tree | 6754a641e68adaa5ecb1af6d0f0585ba3c29f982 /README.md | |
parent | 84ac3bbdf07c01e021e0b5b1b462e859687f410a (diff) |
Added Not(!) logical operator and median function with tests. (#121)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -5,7 +5,7 @@ ## Features: * Built in support for +, -, *, /, % and power (^) operators * Paratheses () and arrays [] are fully supported -* Logical operators (==, !=, <, <, >=, <=, &&, ||) +* Logical operators (==, !=, <, <, >=, <=, &&, ||, !) * Built in support for most PHP math functions * Support for BCMath Arbitrary Precision Math * Support for variable number of function parameters and optional function parameters @@ -71,6 +71,7 @@ Default functions: * log10 (lg) * log1p * max +* median * min * octdec * pi @@ -125,7 +126,7 @@ $executor->addOperator(new Operator( ``` ## Logical operators: -Logical operators (==, !=, <, <, >=, <=, &&, ||) are supported, but logically they can only return true (1) or false (0). In order to leverage them, use the built in **if** function: +Logical operators (==, !=, <, <, >=, <=, &&, ||, !) are supported, but logically they can only return true (1) or false (0). In order to leverage them, use the built in **if** function: ``` if($a > $b, $a - $b, $b - $a) |