/** * @param \AGmakonts\STL\Number\RoundingMode $mode * * @return \AGmakonts\STL\Number\Integer */ public function round(RoundingMode $mode) { return self::get(round($this->value(), 0, $mode->getValue())); }
/** * @param \AGmakonts\STL\Number\RoundingMode $mode * @param int $precision * @return NumberInterface */ public function round(RoundingMode $mode, $precision = 0) { return self::get(round($this->value(), $precision, $mode->getValue())); }