I use Qalculate! as my calculator tool. It comes with a command-line companion tool "qalc". I discovered that it uses comma "
," as decimal separator in numbers. Because the comma is already taken for that role, it expects semicolon "
;" instead of comma "
," in function calls:
Functions is normally entered in an expression by writing the name followed by arguments, separated by commas (or semicolons in languages with comma as decimal point), in parenthesis, thus following the syntax name(arg1, arg2, ...). (source)
That's a mess. As a programmer, I will never remember to use semicolon to separate function arguments, and will always get errors like this at first:
$ qalc "binomial(5, 3)" error: You need at least 2 argument(s) (Exponent; Index) in function binomial().
So how can I configure
qalc to use period "
." as decimal separator and consequently comma "
," as parameter separator?