Add$

Floating point calculation function.

The Add$ function adds two strings representing floating point numbers.

Usage

As only integers are supported numbers in WinTask, calculation on floating point numbers is done using their string representation.

Syntax

res$=ADD$(a$,b$[,rc])

Parameters

a$, b$ are the strings representing the two floating numbers to add.

rc, optional numeric return code.
Values are :
0 if successfull operation
1 invalid operation because parameters are incorrect (for instance, the string can't be considered as a number)
2 if operation causes overflow

Return value

rcs$, string representing a$+b$.

Examples

Add$("13.56","145.789") 'gives "159.35"

Add$("-45.678","34.8976") 'gives "-10.78"

 

#Precision=3

Add$("567.34257","45.343") 'gives "612.686"