DataStore Integer_Multiply_Double_Operator_Calculation::doInternalCalculation(const DataStore &left, const DataStore &right) const { double ans = left.intValue () * right.doubleValue(); return DataStore(SupportedType::stDouble, ans); }
DataStore Integer_Plus_Integer_Operator_Calculation::doInternalCalculation(const DataStore &left, const DataStore &right) const { int ans = left.intValue() + right.intValue(); return DataStore(SupportedType::stInteger, ans); }