src/Util/NumberUtil.php
public static function format($value, int $decimals = 2): ?string {
        if (!\is_numeric($value)) {
            return null;
        }
        return \number_format($value, $decimals);
    }
public static function format($value, int $decimals = 2): ?string {
        if (!\is_numeric($value)) {
            return null;
        }
        return \number_format($value, $decimals);
    }
public static function format ( $ value , int $ decimals = 2 ) : ? string { if ( ! \ is_numeric ( $ value ) ) { return null ; } return \ number_format ( $ value , $ decimals ) ; }
returns the formatted number with grouped thousands

@param     $value
@param int $decimals

@return null|string
returns the formatted number with grouped thousands