SilverStripe\Omnipay\Helper\PaymentMath::subtract
Subtract two numbers that are represented as a string.
Numbers will not be rounded but floored instead! So 10.0 - 0.1 with a precision of 0 will result in 9!
Signature
public function subtract(string
$amountA,
string
$amountB )
Parameters
$amountA
— string- first operand
$amountB
— string- second operand
Returns
- string
- the result as a string