| 1170 | } |
| 1171 | |
| 1172 | std::string MathLib::multiply(const std::string &first, const std::string &second) |
| 1173 | { |
| 1174 | #ifdef TEST_MATHLIB_VALUE |
| 1175 | return (value(first) * value(second)).str(); |
| 1176 | #else |
| 1177 | if (MathLib::isInt(first) && MathLib::isInt(second)) { |
| 1178 | return MathLib::toString(toBigNumber(first) * toBigNumber(second)) + intsuffix(first, second); |
| 1179 | } |
| 1180 | return toString(toDoubleNumber(first) * toDoubleNumber(second)); |
| 1181 | #endif |
| 1182 | } |
| 1183 | |
| 1184 | std::string MathLib::mod(const std::string &first, const std::string &second) |
| 1185 | { |