public function toNatural(RoundingMode $rounding_mode = null)
    {
        $integerValue = $this->toInteger($rounding_mode)->toNative();
        $naturalValue = \abs($integerValue);
        $natural      = new Natural($naturalValue);

        return $natural;
    }
public function toNatural(RoundingMode $rounding_mode = null)
    {
        $integerValue = $this->toInteger($rounding_mode)->toNative();
        $naturalValue = \abs($integerValue);
        $natural      = new Natural($naturalValue);

        return $natural;
    }
public function toNatural ( RoundingMode $ rounding_mode = null ) { $ integerValue = $ this -> toInteger ( $ rounding_mode ) -> toNative ( ) ; $ naturalValue = \ abs ( $ integerValue ) ; $ natural = new Natural ( $ naturalValue ) ; return $ natural ; }
Returns the absolute integer part of the Real number as a Natural

@param  RoundingMode $rounding_mode Rounding mode of the conversion. Defaults to RoundingMode::HALF_UP.
@return Natural
Returns the absolute integer part of the Real number as a Natural