SilverStripe\Omnipay\Helper\PaymentMath::add
Add two numbers that are represented as a string Numbers will not be rounded but floored instead! So 0.22 + 0.27 with a precision of 1 will result in 0.4!
Signature
public function add(string
$amountA,
string
$amountB )
Parameters
$amountA
— string- first operand
$amountB
— string- second operand
Returns
- string
- the result as a string