Since we are discussing undocumented Opusscript
You can use parseInt() instead of number() to convert a string representation of a number to a number, even with a base other than 10.
ie, have two numbers in string form.
str1="22"
str2="44"
str2Num1=parseInt(str1,10) // 10 is the usual number base
str2Num2=parseInt(str2,10)
// now you can add them
ans = str2Num1 + str2Num2
You can also use parseInt() to extract a number from a string for further processing.
parseInt("43.45 kg") will return 43.
If you want the whole number returned, then use the similar function parseFloat().
parseFloat("43.45 kg") will return 43.45
You can also convert from various bases to base 10
//Hex to Decimal conversion
parseInt("3A8", 16);// returns 936
//Binary to Decimal conversion
parseInt("1011", 2) // returns 11
cheers
Paul