# tablepress/3.4/libraries/vendor/PhpSpreadsheet/Calculation/Statistical/Range.php

TablePress – Tables in WordPress made easy, version 3.4. 23 lines.

- Page: https://pluginprobe.com/plugins/tablepress/3.4/code/libraries/vendor/PhpSpreadsheet/Calculation/Statistical/Range.php
- Raw: https://pluginprobe.com/plugins/tablepress/3.4/raw/libraries/vendor/PhpSpreadsheet/Calculation/Statistical/Range.php
- Modified: 2025-01-08T09:25:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/tablepress/3.4/code/libraries/vendor/PhpSpreadsheet/Calculation/Statistical/Range.php#L10-L20`.

```php
<?php

// Range function (Specific to TablePress).

namespace TablePress\PhpOffice\PhpSpreadsheet\Calculation\Statistical;

use TablePress\PhpOffice\PhpSpreadsheet\Calculation\Functions;

class Range
{
	/**
	 * Range (Specific to TablePress).
	 *
	 * Calculates the range of numbers, which is the difference of the maximum minus the minimum of the numbers.
	 *
	 * @param mixed $args Data values.
	 * @return float Range of the values (max - min).
	 */
	public static function RANGE( ...$args ) {
		return Maximum::max( ...$args ) - Minimum::min( ...$args );
	}
}

```
