iogames
11-19-2011, 02:53 PM
Hi...
I placed a currency exchange by google to automatically check the exchange rate for the euro, everything works Ok, but I've been struggling to add an operation to the code...
<?php
require_once("gcc.php");
$ccy = new gcc();
print round($ccy->get_ccy("USD", "EUR", 1), 2);
?>
I get the right exchange, but I need to discount 0.5 cents to the result, to match what TV and Newspapers rate, those 5 cents are banks fees...
in the operation '1' goes for the unit, and '2' for the decimals...
Any ideas? I've tried lots of variants...
I placed a currency exchange by google to automatically check the exchange rate for the euro, everything works Ok, but I've been struggling to add an operation to the code...
<?php
require_once("gcc.php");
$ccy = new gcc();
print round($ccy->get_ccy("USD", "EUR", 1), 2);
?>
I get the right exchange, but I need to discount 0.5 cents to the result, to match what TV and Newspapers rate, those 5 cents are banks fees...
in the operation '1' goes for the unit, and '2' for the decimals...
Any ideas? I've tried lots of variants...