Commit 6dc543c7 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/ticker' into 'master'

Feature/ticker See merge request !38
parents 93e6877a 8b56be53
......@@ -55,7 +55,7 @@ class ServiceController extends BaseController
$quotation[$key] = (float)sprintf("%0.4f", (double)$value);
}
$rate = $this->getRate();
$quotation['rmb'] = (float)sprintf("%0.2f", $rate * $quotation['last']);
$quotation['rmb'] = (float)sprintf("%0.4f", $rate * $quotation['last']);
}
}
}else{
......
......@@ -87,7 +87,7 @@ class CoinBTYService extends Coin implements CoinInterface
public function setPrice($price)
{
return $this->price = (float)sprintf("%0.2f", $price);
return $this->price = (float)sprintf("%0.4f", $price);
}
public function getDollar()
......
......@@ -66,7 +66,7 @@ class CoinService extends Coin implements CoinInterface
*/
public function setPrice($price)
{
$this->price = (float)sprintf("%0.2f", $price);
$this->price = (float)sprintf("%0.4f", $price);
}
/**
......@@ -155,7 +155,7 @@ class CoinService extends Coin implements CoinInterface
*/
public function setHigh($high)
{
$this->high = (float)sprintf("%0.2f", $high / 6.6);
$this->high = (float)sprintf("%0.4f", $high / 6.6);
}
/**
......@@ -184,7 +184,7 @@ class CoinService extends Coin implements CoinInterface
*/
public function setLow($low)
{
$this->low = (float)sprintf("%0.2f", $low / 6.6);
$this->low = (float)sprintf("%0.4f", $low / 6.6);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment