Documentation
Function Reference
Operators

Operators

OperatorNameSyntaxExampleResult
+AddAB + XY4 + 59
-SubtractAB - XY7 - 34
*MultiplyAB * XY2 * 36
/DivideAB / XY6 / 23
%, modModulusAB % XY8 % 32
^PowerAB ^ XY2 ^ 38
!FactorialXY!5!120
&Bitwise AndAB & XY5 & 31
~Bitwise Not~AB~2-3
Bitwise OrAB ⎮ XY5 ⎮ 37
^⎮Bitwise XorAB ^⎮ XY5 ^⎮ 26
? :Conditional ExpressionAB ? XY : PQ15 > 100 ? 1 : -1-1

Table from the math.js documentation (opens in a new tab), filtered to the subset Guesstimate supports.