function _openid_math_div

_openid_math_div($x, $y)

Calls the div function from the available math library for OpenID.

File

modules/openid/openid.inc, line 765
OpenID utility functions.

Code

function _openid_math_div($x, $y) {
  $library = _openid_get_math_library();
  switch ($library) {
    case 'gmp':
      return gmp_div($x, $y);
    case 'bcmath':
      return bcdiv($x, $y);
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!openid!openid.inc/function/_openid_math_div/7.x