public function isZero($scale = null) { $cmp_scale = $scale !== null ? $scale : $this->scale; return bccomp(self::innerRound($this->value, $cmp_scale), '0', $cmp_scale) === 0; }
/** * Checks if the value represented by this object is zero * * @return bool */ public function isZero() { return $this->amount->isZero($this->getInnerPrecision()); }