mirror of
https://github.com/php/doc-es.git
synced 2026-03-26 16:32:13 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@334256 c90b9560-bf6c-de11-be94-00142212c4b1
107 lines
2.6 KiB
XML
107 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 2545422d0c95ea5732ddf2126ae1aa2754885b1c Maintainer: ivanh Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
<refentry xml:id="function.bcsub" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>bcsub</refname>
|
|
<refpurpose>Resta un número de precisión arbitraria de otro</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>bcsub</methodname>
|
|
<methodparam><type>string</type><parameter>left_operand</parameter><initializer>""</initializer></methodparam>
|
|
<methodparam><type>string</type><parameter>right_operand</parameter><initializer>""</initializer></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>scale</parameter><initializer>int</initializer></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Resta el <parameter>right_operand</parameter> del
|
|
<parameter>left_operand</parameter>.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>left_operand</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
El left operand, como una cadena.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>right_operand</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
El right operand, como una cadena.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
&bc.scale.description;
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
El resultado de la resta, como una cadena.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<example>
|
|
<title>Ejemplo <function>bcsub</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
|
|
$a = '1.234';
|
|
$b = '5';
|
|
|
|
echo bcsub($a, $b); // -3
|
|
echo bcsub($a, $b, 4); // -3.7660
|
|
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>bcadd</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
|
|
-->
|