public static function rawToDec($raw, $length = 0)
    {
        $gmp = gmp_import($raw);
        $dec = gmp_strval($gmp, 10);

        return self::pad($dec, $length);
    }
public static function rawToDec($raw, $length = 0)
    {
        $gmp = gmp_import($raw);
        $dec = gmp_strval($gmp, 10);

        return self::pad($dec, $length);
    }
public static function rawToDec ( $ raw , $ length = 0 ) { $ gmp = gmp_import ( $ raw ) ; $ dec = gmp_strval ( $ gmp , 10 ) ; return self :: pad ( $ dec , $ length ) ; }
Converts stream of bytes into decimal string.

@param mixed $raw    Stream of bytes.
@param int   $length Minimum output length.

@return string Decimal string.
Converts stream of bytes into decimal string .