as this solves a precision error where, in one case, a conversion of -2800 comes back as -2799 when blindly converting back to the same currency. Also the second line has greater precision and actually also solves my particular -2799 case even without the from-to check.
Great package. One suggestion is in convert(), in src\currency.php, to replace:
with
as this solves a precision error where, in one case, a conversion of -2800 comes back as -2799 when blindly converting back to the same currency. Also the second line has greater precision and actually also solves my particular -2799 case even without the from-to check.