Functions

Functions in JBEE look much like functions in C-like programming languages with the main difference that parameters must be separated by a semicolon, e.g.:


multiply(2;3)

The reason for choosing a semicolon as a separator instead of a comma simply is that the comma may (depending on locale settings) be used as a decimal mark. Consider the following function:


multiply(1,2,3)

There is no of telling whether this should evaluate as 1,2 * 3 or 1 * 2,3 when using a German locale.