PHP » PYTHON |
login |
register |
about
|
|
In python, the minus sign is the subtraction operator.
As per example: print 1.234 - 5 If you want to take strings, like bcsub() in PHP: print float('1.234') - int('5') bcsub(PHP 4, PHP 5) bcsub — Subtract one arbitrary precision number from another Description
string bcsub
( string $left_operand
, string $right_operand
[, int $scale
] )
Subtracts the right_operand from the left_operand . Parameters
Return ValuesThe result of the subtraction, as a string. ExamplesExample #1 bcsub() example
<?php |
more
Recently updated
more
Most requested
|