string()

var num1 = String.string(3.1415)
var num2 = 926
var total = num1 + num2

In this example, total is "3.1415926" because num1 has been converted to a string, therefore, the + symbol in the total expression is considered to be a concatenation operator and not an addition operator

Close