java.lang.Object
studio.magemonkey.fabled.data.formula.operator.Subtraction
All Implemented Interfaces:
IOperator

public class Subtraction extends Object implements IOperator
The subtraction operation used in formulas
  • Constructor Details

    • Subtraction

      public Subtraction()
  • Method Details

    • compute

      public double compute(double a, double b)
      Performs the operation between the two values
      Specified by:
      compute in interface IOperator
      Parameters:
      a - first value
      b - second value
      Returns:
      result