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

search for in the

bcompiler> <BC math
Last updated: Sun, 25 Nov 2007

view this page in

bcsub

(PHP 4, PHP 5)

bcsub — Odčítať číslo s ľubovoľnou presnosťou od iného

Popis

string bcsub ( string $left_operand , string $right_operand [, int $scale ] )

Odčíta right_operand od left_operand u a vracia výsledok ako reťazec. Voliteľný parameter scale sa používa na nastavenie počtu číslic za desatinou čiarkou vo výsledku.

Example#1 bcsub() príklad

<?php

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

?>

Tiež pozri bcadd().



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

bcompiler> <BC math
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites