PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

GMP> <BC Math Functions
Last updated: Fri, 04 Jul 2008

view this page in

bcsub

(PHP 4, PHP 5)

bcsub — Resta un número de precisión arbitraria de otro.

Descripción

string bcsub ( string $operando izq , string $operando der [, int $escala ] )

Resta el operando der del operando izq y devuelve el resultado en una cadena. El parámetro opcional escala se utiliza para fijar el número de dígitos tras el punto decimal del resultado.

Example #1 Ejemplo bcsub()

<?php

$a 
1.234;
$b 5;
 
echo 
bcsub($a$b);     // -3
echo bcsub($a$b4);  // -3.7660

?>

Ver también bcadd().



add a note add a note User Contributed Notes
bcsub
There are no user contributed notes for this page.

GMP> <BC Math Functions
Last updated: Fri, 04 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites