Adds one integer (represented as a String) to another and returns the sum.
Ensure that the result of your calculation is less than 64 bits in width (the maximum width for the long data type). If the result exceeds this limit, it will generate a data overflow.
Ensure that the strings that are passed to the service in
num1and
num2 are in a locale-neutral format (that is, using the pattern -
####.##). Passing locally formatted strings may result in unexpected results. For example, calling
addFloats in a German locale with the arguments
1,23 and
2,34 will result in the value
357, not
3.57 or
3,57.