sum

The sum NSM predefined function adds two numbers together.

Syntax

sum(param1,param2)

Parameters

param1
Specifies a positive or negative number. The number can also include a decimal point.
param2
Specifies a positive or negative number. The number can also include a decimal point.

Description

The sum NSM predefined function adds the value specified in param1 to the value specified in param2.

Returns

This function returns a string that is derived from the sum of param1 and param2.

Examples

sum("3","4") returns "7"
sum("1","-2") returns "-1"
sum("12.16","57.87623") returns "70.036"
sum("five","4") /* ERROR is thrown here*/