!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/main_file/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/   drwxr-xr-x
Free 13.12 GB of 57.97 GB (22.64%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Helpers.php (3.13 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace PhpOffice\PhpSpreadsheet\Calculation\MathTrig;

use 
PhpOffice\PhpSpreadsheet\Calculation\Exception;
use 
PhpOffice\PhpSpreadsheet\Calculation\Functions;
use 
PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;

class 
Helpers
{
    
/**
     * Many functions accept null/false/true argument treated as 0/0/1.
     *
     * @return float|string quotient or DIV0 if denominator is too small
     */
    
public static function verySmallDenominator(float $numeratorfloat $denominator)
    {
        return (
abs($denominator) < 1.0E-12) ? ExcelError::DIV0() : ($numerator $denominator);
    }

    
/**
     * Many functions accept null/false/true argument treated as 0/0/1.
     *
     * @param mixed $number
     *
     * @return float|int
     */
    
public static function validateNumericNullBool($number)
    {
        
$number Functions::flattenSingleValue($number);
        if (
$number === null) {
            return 
0;
        }
        if (
is_bool($number)) {
            return (int) 
$number;
        }
        if (
is_numeric($number)) {
            return 
$number;
        }

        throw new 
Exception(ExcelError::throwError($number));
    }

    
/**
     * Validate numeric, but allow substitute for null.
     *
     * @param mixed $number
     * @param null|float|int $substitute
     *
     * @return float|int
     */
    
public static function validateNumericNullSubstitution($number$substitute)
    {
        
$number Functions::flattenSingleValue($number);
        if (
$number === null && $substitute !== null) {
            return 
$substitute;
        }
        if (
is_numeric($number)) {
            return 
$number;
        }

        throw new 
Exception(ExcelError::throwError($number));
    }

    
/**
     * Confirm number >= 0.
     *
     * @param float|int $number
     */
    
public static function validateNotNegative($number, ?string $except null): void
    
{
        if (
$number >= 0) {
            return;
        }

        throw new 
Exception($except ?? ExcelError::NAN());
    }

    
/**
     * Confirm number > 0.
     *
     * @param float|int $number
     */
    
public static function validatePositive($number, ?string $except null): void
    
{
        if (
$number 0) {
            return;
        }

        throw new 
Exception($except ?? ExcelError::NAN());
    }

    
/**
     * Confirm number != 0.
     *
     * @param float|int $number
     */
    
public static function validateNotZero($number): void
    
{
        if (
$number) {
            return;
        }

        throw new 
Exception(ExcelError::DIV0());
    }

    public static function 
returnSign(float $number): int
    
{
        return 
$number ? (($number 0) ? : -1) : 0;
    }

    public static function 
getEven(float $number): float
    
{
        
$significance self::returnSign($number);

        return 
$significance ? (ceil($number $significance) * $significance) : 0;
    }

    
/**
     * Return NAN or value depending on argument.
     *
     * @param float $result Number
     *
     * @return float|string
     */
    
public static function numberOrNan($result)
    {
        return 
is_nan($result) ? ExcelError::NAN() : $result;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0094 ]--