PHP » PYTHON |
login |
register |
about
|
|
In python, the plus sign is the addition operator. The scale thing is not handled.
As per example: print 1.234 + 5 If you want to take strings, like bcadd() in PHP: print float('1.234') + int('5') bcadd(PHP 4, PHP 5) bcadd — Add two arbitrary precision numbers Description
string bcadd
( string $left_operand
, string $right_operand
[, int $scale
] )
Sums left_operand and right_operand . Parameters
Return ValuesThe sum of the two operands, as a string. ExamplesExample #1 bcadd() example
<?php |
more
Recently updated
more
Most requested
|