예제 #1
0
DataStore Double_Multiply_Double_Operator_Calculation::doInternalCalculation(const DataStore &left, const DataStore &right) const
{
    double ans = left.doubleValue () * right.doubleValue();
    return DataStore(SupportedType::stDouble, ans);
}
예제 #2
0
DataStore Integer_Plus_Double_Operator_Calculation::doInternalCalculation(const DataStore &left, const DataStore &right) const
{
    double ans = left.intValue () + right.doubleValue();
    return DataStore(SupportedType::stDouble, ans);
}