- TIBCO BusinessEvents®
- Standard
- Math

# Math.maxDouble()

## Signature

`double maxDouble (double a, double b)`

## Domain

ACTION, CONDITION, QUERY, BUI

## Description

Returns the greater of two `double` values. That is, the result is the argument closer to positive infinity. If the arguments have the same value, the result is that same value. If either value is NaN, then the result is NaN. Unlike the the numerical comparison operators, this method considers negative zero to be strictly smaller than positive zero. If one argument is positive zero and the other negative zero, the result is positive zero.

## Parameters

Name | Type | Description
--- | --- | ---
`a` | `double` | An argument.
`b` | `double` | Another argument.

## Returns

Type | Description
--- | ---
`double` | The larger of `a` and `b`.

## Cautions

none