Or login with:
| std::stringmultiply( | std::string | a | |
| std::string | b | ||
| int | base = 10 | ) |
#include <codecogs/maths/arithmetic/multiply.h> #include <iostream> int main() { std::string a("77723445"), b("1236174734675"), c = Maths::Arithmetic::multiply(a, b, 8); std::cout << "The following is a base 8 operation" << std::endl; std::cout << a << " * " << b << " = " << c << std::endl; return 0; }
The following is a base 8 operation 77723445 * 1236174734675 = 123525352137151621521
| a | the first factor |
| b | the second factor |
| base | Default value = 10 |
Source code is available when you agree to a GP Licence or buy a Commercial Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.
You must login to leave a messge