Documentation

Maximum extends MaxMinBase
in package

Table of Contents

Methods

max()  : float|int|string
MAX.
maxA()  : float|int|string
MAXA.
datatypeAdjustmentAllowStrings()  : int|float
datatypeAdjustmentLiteralArguments()  : array<string|int, mixed>
As in Excel (and SUM), a logical value or a text representation of a number typed directly into the argument list counts, and any other text typed there is #VALUE!.

Methods

max()

MAX.

public static max(mixed ...$args) : float|int|string

MAX returns the value of the element of the values passed that has the highest value, with negative numbers considered smaller than positive numbers.

Excel Function: MAX(value1[,value2[, ...]])

Parameters
$args : mixed

Data values

Return values
float|int|string

maxA()

MAXA.

public static maxA(mixed ...$args) : float|int|string

Returns the greatest value in a list of arguments, including numbers, text, and logical values

Excel Function: MAXA(value1[,value2[, ...]])

Parameters
$args : mixed

Data values

Return values
float|int|string

datatypeAdjustmentAllowStrings()

protected static datatypeAdjustmentAllowStrings(int|float|string|bool $value) : int|float
Parameters
$value : int|float|string|bool
Return values
int|float

datatypeAdjustmentLiteralArguments()

As in Excel (and SUM), a logical value or a text representation of a number typed directly into the argument list counts, and any other text typed there is #VALUE!.

protected static datatypeAdjustmentLiteralArguments(array<string|int, mixed> $args) : array<string|int, mixed>

References and arrays are left unchanged, so that their non-numeric values are ignored.

Parameters
$args : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results