-
Notifications
You must be signed in to change notification settings - Fork 1
Subtract
jdubs edited this page Oct 21, 2016
·
1 revision
Performs mathematical operation of subtraction between two variables and formats number when specified.
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.
Performs simple mathematical calculation and returns the result to a defined variable which may be used in other defined actions.
public static void Subtract(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);
}
}