You are here

function currency_multiply in Currency 7.2

Multiplies two numbers.

Parameters

int|float|string $number_a:

int|float|string $number_b:

Return value

int|float|string

1 call to currency_multiply()
_currency_filter_currency_exchange_process in currency/currency.module
Implements preg_replace_callback() callback.

File

currency/currency.module, line 1043
Provides currency information and allows users to add custom currencies.

Code

function currency_multiply($number_a, $number_b) {
  if (extension_loaded('bcmath')) {
    return bcmul($number_a, $number_b, CURRENCY_BCMATH_SCALE);
  }
  else {
    return $number_a * $number_b;
  }
}