i saw that but was a little confused... I seem to have it working to a certain extent. Many thanks for pointint it out Jason
quick question, in this code:
<?php
$file = 'latest.json';
$appId = '67682092accb4a6eb220ec8524d84081';
$ch = curl_init("http://openexchangerates.org/api/{$file}?app_id={$appId}");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$json = curl_exec($ch);
curl_close($ch);
$exchangeRates = json_decode($json);
printf(
"%s : GBP: %s ",
$exchangeRates->base,
$exchangeRates->rates-> GBP
);
?>
How would I get the output from the printf statement to be divided by 1?