Call a function

Hi,

I have a function ADD to add decimal numbers. When I call the function

:put [$ADD decimals=“3.1, 5.6” return=0]

it works and displays 8.7 which is right.

But when I try this script:

:global aa 3.1
:put [$ADD decimals=“$aa, 5.6” return=0]

I got “syntax error (line 56 column 22)”.
Line 56 is this → :put [$ADD decimals=“$aa, 5.6” return=0]
Please help thanks

There is no decimal numbers in RouterOS, so you can enter such value only as string (put 5.6 in quotes). Dot in this case is an operator which gives syntax error.

Will decimals be available in v.7? Needed for milliseconds, volts, degrees of Celsius and so on…