mirror of
https://github.com/php/doc-es.git
synced 2026-03-26 08:22:08 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@334678 c90b9560-bf6c-de11-be94-00142212c4b1
110 lines
2.9 KiB
XML
110 lines
2.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 1cd19d56e1982c9947be9239b73cc8bd03ff178e Maintainer: lboshell Status: ready -->
|
|
<!-- Reviewed: no Maintainer: seros -->
|
|
<refentry xml:id="function.hexdec" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>hexdec</refname>
|
|
<refpurpose>Hexadecimal a decimal</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>number</type><methodname>hexdec</methodname>
|
|
<methodparam><type>string</type><parameter>hex_string</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Devuelve el equivalente decimal del número hexadecimal representado por
|
|
el argumento <parameter>cadena_hex</parameter>.
|
|
<function>hexdec</function> convierte un string hexadecimal a un número
|
|
decimal.
|
|
</para>
|
|
<para>
|
|
<function>hexdec</function> ignora cualquier caracter no hexadecimal que
|
|
encuentre.
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>hex_string</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
El string hexadecimal a convertir
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
La representación decimal de <parameter>hex_string</parameter>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Ejemplo de <function>hexdec</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
var_dump(hexdec("See"));
|
|
var_dump(hexdec("ee"));
|
|
// ambos imprimen "int(238)"
|
|
|
|
var_dump(hexdec("that")); // imprime "int(10)"
|
|
var_dump(hexdec("a0")); // imprime "int(160)"
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="notes">
|
|
&reftitle.notes;
|
|
<note>
|
|
<para>
|
|
Esta función puede convertir números que son demasiado grandes para caber en el tipo
|
|
<type>integer</type> de cada plataforma, devolviendo en este caso un valor de tipo
|
|
<type>float</type> para los valores mayores.
|
|
</para>
|
|
</note>
|
|
</refsect1>
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>dechex</function></member>
|
|
<member><function>bindec</function></member>
|
|
<member><function>octdec</function></member>
|
|
<member><function>base_convert</function></member>
|
|
</simplelist>
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|