Home > Language Reference > Floating Point Calculation Functions > Multiply$

Multiply$

The Multiply$ function multiplies two strings representing floating point numbers.

Usage

Used to multiply 2 reals.

Syntax

result$=Multiply$(<real1>, <real2> [, <ret>])

Parameters

<real1>, string, first real to multiply.

<real2>, string, second real to mulitply.

<ret>, integer, optional return code. Values are :
    0 if successfull operation.
    1 if parameters are not valid (for instance, the string does not contain a valid number).
    2 if operation causes an overflow.

Return value

result$, string containing the multiplication result.

See also

DecimalSeparator$
Precision
Add$
Divide$
Subtract$

Examples

a$=Multiply$("13.56","145.789")     'a$ contains "1976.90"

a$=Multiply$("-45.678","34.8976")  'a$ contains "-1594.05"

#Precision=3
a$=Multiply$("567.34257","45.343")     'a$ contains "25725.014"