skip to main content
Corticon Studio: Rule Language Guide : Rule operator details and examples : Subtract
 

Try Corticon Now

Subtract

SYNTAX

<Number1> - <Number2>

DESCRIPTION

Subtracts the value of <Number2> from that of <Number1>. The resulting data type is the more expansive of those of <Number1> and <Number2>.

USAGE RESTRICTIONS

The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.

RULESHEET EXAMPLE

This sample Rulesheet uses subtract to reduce the value of decimal1 by decimal2, compare the resulting value to zero, and assign a value to boolean1

SAMPLE TEST

A Ruletest provides three examples of decimal1 and decimal2. Input and Output panels are shown below.