Ajax
Ajax Examples
Ajax Tutorials
Scripts and Programs
Javascript
Javascript Examples Tutorials
DHTML Tutorials
Javascript References
Scripts and Programs
HTML
HTML Tutorials
HTML References
HTML DOM 0 References
HTML DOM 2 References
CSS
CSS Tutorials
CSS References
PHP
PHP Source Code
PHP References
Scripts and Programs
C#
C# Source Code
C# Examples
Bookmark this on Delicious
Share on Facebook
Slashdot It!
Digg
PHP
:
Function Reference
:
BCMath Arbitrary Precision Mathematics Functions
: bcsub
bcsub
Subtract one arbitrary precision number from another
(
PHP 4, PHP 5
)
string
bcsub
(
string
left_operand
,
string
right_operand
[,
int
scale
] )
Example 344.
bcsub()
example
copy to clipboard
<?php
$a
=
'1.234'
;
$b
=
'5'
;
echo
bcsub
(
$a
,
$b
);
// -3
echo
bcsub
(
$a
,
$b
,
4
);
// -3.7660
?>
<< bcsqrt
PHP
:
Function Reference
:
BCMath Arbitrary Precision Mathematics Functions
: bcsub
PHP bytecode Compiler >>
Change Language
bcadd
bccomp
bcdiv
bcmod
bcmul
bcpow
bcpowmod
bcscale
bcsqrt
bcsub