Multiply

jdubs edited this page Oct 21, 2016 · 1 revision

Table of Contents

Overview

Performs mathematical operation of multiplication between two variables and formats number when specified.

Parameters

NumberA (multiple) The variable containing the first value in the operation

NumberB (multiple) The variable containing the second value in the operation

SpecName (constant) The name of the variable for operation result assignment

NumberFormatCode (multiple) The numeric format code (see addendum 1)

ErrorMessage (multiple | optional) The error message to return when any error occurs.

Synopsis

Performs simple mathematical calculation and returns the result to a defined variable which may be used in other defined actions.

Source Code

public static void Multiply(object NumberA, object NumberB, string SpecName, object NumberFormatCode, object ErrorMessage)
{
	Break();
	try
	{
		double z = N(NumberA) * N(NumberB);
		Variable(SpecName).Value = z.ToString((string)NumberFormatCode);
	}
	catch (Exception ex)
	{
		throw new Four51ActionsException(ex.Message, (string)ErrorMessage);
	}
}

Referenced Methods

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.