I am looking into using the package but have questions regarding the convert function, looking through the source code it always seems to multiply and I am wondering why?
e.g.
If i have an amount in USD but my local currency is GBP.
$amount = 500;$exRate = 1.3195;$localAmount = (new Money($amount, new Currency('USD'), true))->mutable();$localAmount ->convert(new Currency('GBP'), $exRate);
Can anyone explain why it is doing this? I am not saying it's wrong as such i am just trying to gauge an understanding!
Hi All,
I am looking into using the package but have questions regarding the convert function, looking through the source code it always seems to multiply and I am wondering why?
e.g. If i have an amount in USD but my local currency is GBP.
$amount = 500;
$exRate = 1.3195;
$localAmount = (new Money($amount, new Currency('USD'), true))->mutable();
$localAmount ->convert(new Currency('GBP'), $exRate);
Can anyone explain why it is doing this? I am not saying it's wrong as such i am just trying to gauge an understanding!