SilverStripe\Omnipay\Helper\PaymentMath::compare
Compare two numbers that are represented as a string
Signature
public function compare(string
$amountA,
string
$amountB )
Parameters
$amountA
— string- first operand
$amountB
— string- second operand
Returns
- int
- 0 when both numbers are equal, 1 when $amountA is bigger than $amountB, -1 otherwise