Greater than
@param object $number
@param int $scale
@return bool
162980
public function Gt( $number, $scale = false )
	{
		$result = $this->Compare( $number, $scale );
		if ( $result === false ) return false;
		return $result == 1;
	}
378265
public static function SQRTPI($number)
    {
        $number    = PHPExcel_Calculation_Functions::flattenSingleValue($number);

        if (is_numeric($number)) {
            if ($number < 0) {
                return PHPExcel_Calculation_Functions::NaN();
            }
            return sqrt($number * M_PI) ;
        }
        return PHPExcel_Calculation_Functions::VALUE();
    }
95262
protected function setComponent(float $value, float $scale): float
    {
        return ($scale < 0) ? (1 - $value / -$scale) : ($value / $scale);
    }
666451
public function equals($number): bool
    {
        if (!($number instanceof Number)) {
            return false;
        }
        
        return $this->number === $number->number;
    }
399240
public static function isInt($number, $gt = false, $lt = false) {
        if (is_string($number)) {
            if (trim($number) == '')
                return false;
            // Extract sign if exist
            $sign = '';
            if ($number[0] == '+' || $number[0] == '-') {
                $sign = $number[0];
                $number = substr($number, 1);
            }
            $number = ($sign == '-' ? '-' . $number : $number);
            if ($number !== (string) (int) $number)
                return false;
            $number = (int) $number;
        }elseif (((int) $number) !== $number)
            return false;
        if (!$lt && !$gt || $lt && $number <= $lt && $gt && $number >= $gt || !$lt && $gt && $number >= $gt || !$gt && $lt && $number <= $lt)
            return true;
        return false;
    }
1331632
protected function _isValidNumer($number)
    {
        $valid = false;
        if (($length = strlen($number))) {
            $modSum = 0;
            $mod = $length % 2;

            // Luhn algorithm
            for ($pos = 0; $pos < $length; $pos++) {
                // taking digit to check..
                $currDigit = ( int ) $number{$pos};

                // multiplying if needed..
                $addValue = (($pos % 2 == $mod) ? 2 : 1) * $currDigit;

                // adding prepared current digit
                $modSum += ($addValue > 9) ? $addValue - 9 : $addValue;
            }

            $valid = ($modSum % 10) == 0;
        }

        return $valid;
    }
317822
public function isGreaterThan(Decimal $that) : bool
    {
        $this->scaleValues($this, $that, $a, $b);

        return $a > $b;
    }
55566
public function sin(int $scale = null): Decimal
    {
        // First normalise the number in the [0, 2PI] domain
        $x = $this->mod(DecimalConstants::PI()->mul(Decimal::fromString("2")));

        // PI has only 32 significant numbers
        $scale = (null === $scale) ? 32 : $scale;

        return self::factorialSerie(
            $x,
            DecimalConstants::zero(),
            function ($i) {
                return ($i % 2 === 1) ? (
                ($i % 4 === 1) ? DecimalConstants::one() : DecimalConstants::negativeOne()
                ) : DecimalConstants::zero();
            },
            $scale
        );
    }
619995
protected function isSoftInteger($number)
    {
        if (!is_scalar($number) || $number === null) {
            return false;
        }
        
        $number = (string) $number;
        
        return preg_match('/^[-+]?\d+$/', $number);
    }
475254
public static function isFloat($number, $gt = false, $lt = false) {
        if (is_string($number)) {
            if (trim($number) == '')
                return false;
            // Extract sign if exist
            $sign = '';
            if ($number[0] == '+' || $number[0] == '-') {
                $sign = $number[0];
                $number = substr($number, 1);
            }
            $number = ($sign == '-' ? '-' . $number : $number);
            if (!\is_numeric($number))
                return false;
            $number = (float) $number;
        }elseif (is_int($number)) {
            $number = (float) $number;
        }
        if (!\is_float($number))
            return false;
        if (!$lt && !$gt || $lt && $number <= $lt && $gt && $number >= $gt || !$lt && $gt && $number >= $gt || !$gt && $lt && $number <= $lt)
            return true;
        return false;
    }
1042530
public function setScale($scale)
    {
        if (! is_numeric($scale)) {
            $scale = 0;
        }

        $this->_scale = (int) $scale;

        return $this;
    }
1123491
def _get_precision_scale(self, number):
        
        try:
            decimal_num = Decimal(number)
        except InvalidOperation:
            raise Invalid(self.msg or 'Value must be a number enclosed with string')

        return (len(decimal_num.as_tuple().digits), -(decimal_num.as_tuple().exponent), decimal_num)
264042
public function max(...$numbers)
    {
        foreach ($numbers as $number) {
            if (bccomp(static::validateInputNumber($number), $this->number, $this->precision) === 1) {
                $this->number = $number;
            }
        }

        return $this;
    }
883062
public static function ceil($number)
    {
        if (self::compare($number, 0) == 1) {
            $result = bcadd($number, '1', 0);
        } else {
            $result = bcadd($number, '0', 0);
        }

        return $result;
    }
1121055
public function lt($number)
    {
        return (bool) (bccomp($this->number, static::validateInputNumber($number), $this->precision) === -1);
    }
1270364
public function setScale($scale) {
        $scale = intval($scale);
        if ($scale <= 0) {
            throw new CINArgumentException('The scale must be larger than 0.', 'scale');
        }

        $this->scale = $scale;
    }
326047
private boolean doSetScale(double scale) {
		boolean res = Math.abs(viewState.getScale() - scale) > .0000001;
		viewState = viewState.copyAndSetScale(scale);
		return res;
	}