Docs

Predefined functions

These are functions defined in the FlowRun itself.
Here is a little agenda for the syntax:

SyntaxDescription
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
readInput()Read user input