Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/vendor/azjezz/psl/src/Psl/Math/mean.php
Назад
<?php declare(strict_types=1); namespace Psl\Math; use function count; /** * Returns the arithmetic mean of the given numbers in the list. * * Return null if the given list is empty. * * @param list<int|float> $numbers * * @pure */ function mean(array $numbers): ?float { $count = (float) count($numbers); if (0.0 === $count) { return null; } $mean = 0.0; foreach ($numbers as $number) { $mean += (float)$number / $count; } return $mean; }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0.02 |
proxy
|
phpinfo
|
Настройка