multiply

Multiply any two numbers

multiply<return_type>(a, b);

will return the product of the two given numbers. The return_type specifies in which data type the multiplication will be returned in, like shown in below example:

multiply<int>(7.89, 6); //42
multiply<float>(3.21, 12); //38.52
multiply<bool>(-1, 5); //1, AND operator
------------------------
multiply<char>('a', 'b'); //'"'

Last updated