Predefined Functions Reference
These are functions defined in the FlowRun itself.
This is the convention used in the next table:
- i - integer number
- r - real number
- n - number (integer or real)
- s - string
- b - boolean
| Syntax | Description |
|---|---|
| abs(n) | Absolute value of n |
| floor(r) | Floor value of r |
| ceil(r) | Ceil value of r |
| sqrt(n) | Square root of n |
| pow(n1, n2) | n1 raised to the power of n2 |
| randomInt(i) | Random integer from 0 to i (inclusive) |
| sin(n) | Sin of n |
| cos(n) | Cos of n |
| tan(n) | Tan of n |
| ln(n) | Ln of n |
| log(n) | Log of n |
| log2(n) | Log2 of n |
| length(s) | Length of s |
| charAt(s, i) | Char of s, at position i |
| real2int(r) | Integer value of r |
| string2int(s) | Integer value of s |
| readInput() | Read user input |