
A searchable table with all Zooper Math Expressions that you can use in Zooper Widget.
Zooper Math Expressions
Some usage examples from the Zooper Website:
- $(3*2)$ will write 6
- $(1>0)?(3*2)$ will write 6 is 1 > 0
- $(3*2 > 4)?Yes!:No$ will write Yes if “3*2″ is greater than 4 (so yes, it will write yes!)
- $(int(#Dm#/10) = 3 || int(#Dm#/10) = 5)? It's thirty something or fifty something$ will write “It’s thirty something or fifty something” when minute is between 30 and 39 OR 50 and 59 (so #Dm# is current minute, we divide by 10 and then we take the integer part, so, for example if #Dm# is 39 -> 39/10 = 3.9 -> int(3.9) -> 3 and 3 = 3)
[sam id=3 codes='false']
| Expression | Value | |
|---|---|---|
| Constants | e | Base of natural algorithms (2.71828) |
| Constants | pi | Ratio of the circumference of a circle to its diameter (3.14159265359) |
| Constants | xo | current module X Offset as set in the preferences |
| Constants | yo | current module Y Offset as set in the preferences |
| Operators | + | Addition |
| Operators | - | Subtraction |
| Operators | - | Unary minus |
| Operators | * | Multiplication |
| Operators | / | Division |
| Operators | ^ | Exponentiation |
| Operators | % | Modulo |
| Functions | abs | absolute value |
| Functions | acos | arc cosine |
| Functions | asin | arc sine |
| Functions | atan | arc tangent |
| Functions | average | average of arguments |
| Functions | ceil | nearest upper integer |
| Functions | cos | cosine |
| Functions | cosh | hyperbolic cosine |
| Functions | floor | nearest lower integer |
| Functions | ln | natural logarithm (base e) |
| Functions | log | base 10 logarithm |
| Functions | max | maximum of arguments |
| Functions | min | minimum of arguments |
| Functions | round | nearest integer |
| Functions | int | same as round |
| Functions | sin | sine |
| Functions | sinh | hyperbolic sine |
| Functions | sum | sum of arguments |
| Functions | tan | tangent |
| Functions | tanh | hyperbolic tangent |
| Functions | random | pseudo-random number (between 0 and 1) |
You can find more Zooper Widget Tutorials here.

