public function magnitude(): Utility
    {
        if ($this->number == 0) {
            $magnitude = 0;
        } else {
            $magnitude = floor(log10(abs($this->number)));
        }

        return new static($magnitude);
    }
public function magnitude(): Utility
    {
        if ($this->number == 0) {
            $magnitude = 0;
        } else {
            $magnitude = floor(log10(abs($this->number)));
        }

        return new static($magnitude);
    }
public function magnitude ( ) : Utility { if ( $ this -> number == 0 ) { $ magnitude = 0 ; } else { $ magnitude = floor ( log10 ( abs ( $ this -> number ) ) ) ; } return new static ( $ magnitude ) ; }
Get the order of magnitude of the number

@return Utility
@throws NonNumericValueException
Get the order of magnitude of the number