PHP » PYTHON |
login |
register |
about
|
In python, the minus sign is the subtraction operator.
As per example: import decimal a = decimal.Decimal('1.234') b = decimal.Decimal('5') decimal.getcontext().prec=0 print(a - b); # -3 decimal.getcontext().prec=4 print(a - b); # -3.7660 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
more
Last requests
|