Skip to content

Commit

Permalink
fix(price): fixed price precision
Browse files Browse the repository at this point in the history
  • Loading branch information
invasioncredible committed Jan 14, 2018
1 parent 48d0ccf commit e72a374
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/Object/Hotel/Price.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,10 @@ class Price
*/
public function __construct($amount, $currency)
{
$this->amount = $this->precise($amount);
$this->amount = $amount;
$this->currency = $currency;
}

/**
* @param $amount
* @return string
*/
private function precise($amount)
{
return (string)round((float)$amount, 1);
}


/**
* @return mixed
*/
Expand Down

0 comments on commit e72a374

Please sign in to comment.