コード例 #1
0
ファイル: Quantity.php プロジェクト: rawroland/Newton
 /**
  * Take an instance of any unit and attempt to divide. This will pass responsibility to the UnitComposition class
  * so that it can attempt to figure out what the resulting units should be.
  *
  * @param   Quantity $quantity
  * @param   int $precision
  * @return  Quantity
  */
 public function divideBy(Quantity $quantity, $precision = 2)
 {
     return $this->unitCompClass->naiveDivide($this, $quantity, $precision);
 }