Multiply$

Floating point calculation function.

The Multiply$ function multiplies 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$=Multiply$(a$,b$[,rc])

Parameters

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

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

Return value

res$, string representing a$ * b$.

See also

#Precision

Examples

 

Multiply$("13.56","145.789") 'gives "1976.90"

Multiply$("-45.678","34.8976") 'gives "-1594.05"

 

#Precision=3

Multiply$("567.34257","45.343") 'gives "25725.014"