Supported Functions, Operators, and Constants for the Calculator
Calculator Functions
Our POWER Sec Calculator supports a selection of math functions, constants, operators, and statistical operations. Below you'll find an overview of what you can use.
Operators
Operator | Example | Description |
+ | 3 + 2 => 5 | Addition |
- | 5 - 3 => 2 | Subtraction |
* | 4 * 2 => 8 | Multiplication |
/ | 8 / 2 => 4 | Division |
% | 7 % 3 => 1 | Remainder (modulo) |
^ | 2 ^ 3 => 8 | Exponentiation |
! | 5! => 120 | Factorial |
Comparison | 3 > 2 => true, 4 == 5 => false | Less/greater than, equal/not equal |
Logical | true and false => false, 2 < 3 or 5 < 2 => true | Boolean logic |
Ternary | 2 > 1 ? 10 : 20 => 10 | Conditional expression |
Basic Math Functions
Function | Example | Description |
abs(x) | abs(-5) => 5 | Absolute value |
ceil(x) | ceil(4.2) => 5 | Rounds up |
floor(x) | floor(4.8) => 4 | Rounds down |
round(x) | round(4.6) => 5 | Rounds to nearest integer |
max(a, b, ...) | max(2, 8, 6) => 5 | Largest value |
min(a, b, ...) | min(2, 8, 6) => 2 | Smallest value |
sqrt(x) | sqrt(9) => 3 | Square root |
pow(x, y) | pow(2, 3) => 8 | x raised to y |
exp(x) | exp(1) => 2.718... | Exponential (e^x) |
log(x) | log(10) => 2.302... | Natural logarithm (base e) |
log10(x) | log10(100) => 2 | Logarithm base 10 |
Statistical Functions
Function | Example | Description |
mean(a, b, ...) | mean(2, 4, 6) | Arithmetic average |
median(a, b, ...) | median(1, 3, 5) | Middle value in sorted list |
Constants
Constant | Example | Description |
PI / pi | 3.14159... | Mathematical constant pi |
E / e | 2.71828... | Euler's number |