Integrated Calculator

Last updated 11 months ago

You can perform calculations from your home screen and get the answer without opening any extra apps.

You can type your math expression into the search bar and get instant results.

Here is a quick cheat sheet for supported operations:

Basic operations

OperationSymbolExampleResult
Addition+ 5 + 3 8
Subtraction- 8 - 4 4
Multiplication* 2 * 16 , 2(1+3) (multiplication is inferred)32 , 8
Division/ 50 / 12 4.166..
Power^ 3^2 9
Modulus (integer division remainder)% 5 % 2 1

Additional whitespaces are ignored so that you can write 1+2 and 1 + 2 .

Constants

Note that constants only work when used alongside other parts of an expression. Just writing the constant will not get picked up. A workaround is writing + 0 behind a constant or function, e.g., pi + 0 = 3.14... .

ConstantSymbolValue
π (pi)pi 3.14..
e (Euler's number)e 2.71..
Logical truth value (true)true true
Logical truth value (false)false false

Functions

Basic

FunctionSymbolExampleResult
Absolute valueabs abs(-4) 4
Logarithm (natural)log log(e^2) 2
Logarithm (base 10)log10 log10(10) 1
Factorialfact fact(5) 120
Randomrandom random() random number from [0.0, 1.0)
Maximummax max(3, 2, 10) 10
Minimummin min(2, 7, 10) 2
Round to decimal pointround(<number>, <place-to-round-to>) round(3.256, 1) , round(3.256, 2) 3.3 , 3.26
Floor (next smallest integerfloor floor(2.4)
Ceiling (next largest integer)ceiling ceiling(3.3)

Trigonometric

FunctionSymbolExample
Sinesin sin(3.14) (uses radians)
Cosinecos cos(3.14) (uses radians)
Tangenttan tan(3.14) (uses radians)
Arc-sineasin asin(3.14) (returns degrees)
Arc-cosineacos acos(3.14) (return degrees)
Degrees to radiansrad rad(180)
Radians to degreesdeg deg(3.14)

Function names ignore capitalization.

Comparisons

OperationSymbolExampleResult
Greater than> 15 > 12 true
Less than< 0 < 5 true
Greater than or equal to>= 12 >= 13 false
Less than or equal to<= 3 <= 5 true
Equality== 4 == 1 false
Inequality!= (2 + 2) != 3 true

Logical comparisons

Combining multiple comparisons.

OperationSymbolExampleResult
Logical AND&& (3 > 1) && (10 >= 5) true
Logical OR|| (2 != 1) || (1 == 1) true
Logical XOR!= (1 < 3) != (1 > 2) true
Logical NOT! !(1 < 3) false