<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [mathMax](./rc-js-util.mathmax.md)

## mathMax() function

Returns the larger of the two parameters `a` and `b`<!-- -->.

**Signature:**

```typescript
export declare function mathMax(a: number, b: number): number;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

a


</td><td>

number


</td><td>


</td></tr>
<tr><td>

b


</td><td>

number


</td><td>


</td></tr>
</tbody></table>
**Returns:**

number

## Remarks

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()](./rc-js-util.mathmax.md)<!-- -->.

