original_string: public function decimal($amount, $currency_code)
      {
          static $divisors = array();
  
          if (empty($divisors[$currency_code])) {
              $currency = $this->currency->get($currency_code);
              $divisors[$currency_code] = pow(10, $currency['decimals']);
          }
  
          return $amount / $divisors[$currency_code];
      }
code: public function decimal($amount, $currency_code)
      {
          static $divisors = array();
  
          if (empty($divisors[$currency_code])) {
              $currency = $this->currency->get($currency_code);
              $divisors[$currency_code] = pow(10, $currency['decimals']);
          }
  
          return $amount / $divisors[$currency_code];
      }
code_tokens: public function decimal ( $ amount , $ currency_code ) { static $ divisors = array ( ) ; if ( empty ( $ divisors [ $ currency_code ] ) ) { $ currency = $ this -> currency -> get ( $ currency_code ) ; $ divisors [ $ currency_code ] = pow ( 10 , $ currency [ 'decimals' ] ) ; } return $ amount / $ divisors [ $ currency_code ] ; }
docstring: Converts an amount from minor to major units
  @param integer $amount
  @param string $currency_code
  @return float
docstring_tokens: Converts an amount from minor to major units