示例#1
0
 /**
  * Checks to see if two monetary values are equal
  * 
  * @throws fValidationException  When `$money` is not a valid number/monetary value
  * 
  * @param  fMoney|string|integer $money  The money object to compare to - a string or integer will be converted to the default currency (if defined)
  * @return boolean  If the monetary values are equal
  */
 public function eq($money)
 {
     $money = $this->makeMoney($money);
     return $this->amount->eq($money->convert($this->currency)->amount);
 }