src/Chippyash/Type/Number/Rational/RationalType.php
protected function reduce()
    {
        /** @noinspection PhpUndefinedMethodInspection */
        $gcd = $this->gcd($this->value['num']->get(), $this->value['den']->get());
        if ($gcd > 1) {
            $this->value['num']->set($this->value['num']->get() / $gcd) ;
            $this->value['den']->set($this->value['den']->get() / $gcd);
        }
    }
protected function reduce()
    {
        /** @noinspection PhpUndefinedMethodInspection */
        $gcd = $this->gcd($this->value['num']->get(), $this->value['den']->get());
        if ($gcd > 1) {
            $this->value['num']->set($this->value['num']->get() / $gcd) ;
            $this->value['den']->set($this->value['den']->get() / $gcd);
        }
    }
protected function reduce ( ) { /** @noinspection PhpUndefinedMethodInspection */ $ gcd = $ this -> gcd ( $ this -> value [ 'num' ] -> get ( ) , $ this -> value [ 'den' ] -> get ( ) ) ; if ( $ gcd > 1 ) { $ this -> value [ 'num' ] -> set ( $ this -> value [ 'num' ] -> get ( ) / $ gcd ) ; $ this -> value [ 'den' ] -> set ( $ this -> value [ 'den' ] -> get ( ) / $ gcd ) ; } }
Reduce this number to it's lowest form

@return void
Reduce this number to it s lowest form