Multiply()

Namespace ›› System ›› MfFloat ›› Methods ››
Parent Previous Next

Multiply()

OutputVar := instance.Multiply(value)

Multiply(value)

Multiplies the current instance of MfFloat by the value.

Parameters

value

The value to multiply the current instance Value by.
Can be var containing float or any object that IsNumber.

Returns

If ReturnAsObject is true then returns current instance of MfFloat with an updated Value; Otherwise returns Value as var.

Throws

Throws MfNotSupportedException if Readonly is true.
Throws MfNullReferenceException if called as a static method
Throws MfArgumentNullException if value is null.
Throws MfDivideByZeroException if value is zero.
Throws MfArithmeticException if the operation fails or value is not an instance of MfFloat and can not be converted into float Value.

Remarks

The result of the operation will based upon the Format options of the current instance.

Example

flt := new MfFloat(44.5,,,"0.2")
MsgBox % flt.Multiply(4.2258974575444) ; displays 188.05