@param int $number
@param int $power

@return string
160378
public function inflectExponent($number, $power)
    {
        return $this->inflector->inflectNounByNumber(
            $number,
            self::$exponent[$power][0],
            self::$exponent[$power][1],
            self::$exponent[$power][2]
        );
    }
294843
public function getArticleByNumber(int $number): Generator
    {
        yield from $this->sendCommand(new Command('ARTICLE', (string)$number));

        $data = yield from $this->encoder->readData($this->stream);
        return Article::parse($data);
    }
100300
public static function encode($number)
    {
        if (!is_numeric($number)) {
            throw new \RuntimeException("Specified number '{$number}' is not numeric");
        }

        if (!$number) {
            return 0;
        }

        $response = array();
        while ($number) {
            $remainder = $number % 32;
            $number = (int) ($number/32);
            $response[] = static::$symbols[$remainder];
        }

        return implode('', array_reverse($response));
    }
990761
public function format($number, $options = [])
    {
        return $this->formatter()->format($number,
            $this->mergeOptions($options)
        );
    }
122555
public function getArticleBodyByNumber(int $number): Generator
    {
        yield from $this->sendCommand(new Command('BODY', (string)$number));
        return yield from $this->encoder->readData($this->stream);
    }
555347
public function limit(int $number)
    {
        $instance = $this->limitStrategyInstance();

        $instance->limitStrategy()->limit($number);

        return $instance;
    }
841876
static function parseMobileNumber($number) {
    // Extract numerics
    $numerics = static::extractNumerics($number);
    // Set country code
    $countryCode = '';
    // Get last 10 digits
    $short = static::right($numerics, 10, $countryCode);
    // Set carrier code
    $carriercode = '';
    // Get number
    $number = static::right($short, 7, $carrierCode);
    // Return
    return compact('countryCode', 'carrierCode', 'number');
  }
1056678
private function numToString(BigNumber $number) : string
    {
        $output = '';
        while ($number->getValue() > 0) {
            $previousNumber = clone $number;
            $number = $number->divide($this->alphabetLength);
            $digit = $previousNumber->mod($this->alphabetLength);

            $output .= $this->alphabet[(int)$digit->getValue()];
        }

        return $output;
    }
242049
public function revokeNumberAsyncWithHttpInfo($number)
    {
        $returnType = '';
        $request = $this->revokeNumberRequest($number);

        return $this->client
            ->sendAsync($request, $this->createHttpClientOption())
            ->then(
                function ($response) use ($returnType) {
                    return [null, $response->getStatusCode(), $response->getHeaders()];
                },
                function ($exception) {
                    $response = $exception->getResponse();
                    $statusCode = $response->getStatusCode();
                    throw new ApiException(
                        sprintf(
                            '[%d] Error connecting to the API (%s)',
                            $statusCode,
                            $exception->getRequest()->getUri()
                        ),
                        $statusCode,
                        $response->getHeaders(),
                        $response->getBody()
                    );
                }
            );
    }
534996
private static function encodeInteger($integer)
    {
        if ($integer >= 0 && $integer < pow(2, 7)) {
            // positive fixnum: 7-bit positive integer
            // 0XXXXXXX
            return pack('H*', str_pad(dechex($integer), 2, 0, STR_PAD_LEFT));
        } elseif ($integer < 0 && abs($integer) < pow(2, 5)) {
            // negative fixnum: 5-bit negative integer
            // 111YYYYY
            return pack('H*', dechex(bindec(11100000) + $integer));
        }

        if ($integer >= 0) {
            $prefixes = array(8 => 0xcc00, 16 => 0xcd0000, 32 => 0xce00000000, 64 => 0xcf);
        } else {
            $prefixes = array(8 => 0xd000, 16 => 0xd10000, 32 => 0xd200000000, 64 => 0xd3);
        }

        // For each step the max size increases.
        foreach (array(8, 16, 32) as $power) {
            if ($integer < pow(2, $power)) {
                return pack('H*', dechex($prefixes[$power] + $integer));
            }
        }

        // 0x** ZZZZZZZZ ZZZZZZZZ ZZZZZZZZ ZZZZZZZZ ZZZZZZZZ ZZZZZZZZ ZZZZZZZZ ZZZZZZZZ
        return pack('H*', dechex($prefixes[64]).str_pad(dechex($integer), 16, '0', STR_PAD_LEFT));
    }
444836
public function getNumber($number)
    {
        switch ($this->_type) {
            case self::TYPE_ALPHA_UPPER:
                return $this->getAlphaNumber($number);
            case self::TYPE_ALPHA_LOWER:
                return $this->getAlphaNumber($number, true);
            case self::TYPE_ROMAN_UPPER:
                return $this->getRomanNumber($number);
            case self::TYPE_ROMAN_LOWER:
                return $this->getRomanNumber($number, true);
            // default is alpha
            default:
                return $number;
        }
    }
464337
public function getArticleHeadersByNumber(int $number): Generator
    {
        yield from $this->sendCommand(new Command('HEAD', (string)$number));

        $data = yield from $this->encoder->readData($this->stream);
        return HeaderBag::parse($data);
    }
968563
private function getPage($number)
    {
        return new self($this->adapter, $this->strategy, $this->perPage, $number);
    }
1298246
public function power($power)
    {
        if (!is_numeric($power)) {
            throw new \InvalidArgumentException('Power must be numeric');
        }

        $amount = bcpow($this->amount, strval($power), self::BCSCALE);

        return self::valueOf($amount, $this->currency);
    }
567569
protected function asString($number, $digits = 2) {
		$number = (string)$number;
		$count = mb_strlen($number);
		while ($count < $digits) {
			$number = '0' . $number;
			$count++;
		}
		return $number;
	}
265322
public static function formatSocialNumber($number){

		assert('is_integer($number)');

		if(!is_integer($number)) return $number;

		if($number > 10000000){

			$number = round($number / 1000000) . 'M';
		}
		elseif($number > 1000000){

			$number = round($number / 1000000, 1) . 'M';
		}
		elseif($number > 10000){

			$number = round($number / 1000) . 'K';
		}
		elseif($number > 1000){

			$number = round($number / 1000, 1) . 'K';
		}

		return $number;
	}
427680
public function getIsDecimal( $number = false )
	{
		return	strpos( $number === false ? $this->_value : $number, "." ) !== false &&
				trim( substr( $number === false ? $this->_value : $number, strpos( $number === false ? $this->_value : $number, "." ) + 1 ), "0" );
	}