Home > rc-js-util > mathMax
Returns the larger of the two parameters a
and b
.
Signature:
export declare function mathMax(a: number, b: number): number;
Parameter | Type | Description |
---|---|---|
a | number | |
b | number |
Returns:
number
NaN input will cause a debug error. Differs from Math.max by taking only 2 arguments, avoids overhead of handling variable number of arguments.
See mathMax().