- TIBCO BusinessEvents®
- Standard
- Math

# Math.ceil()

## Signature

`double ceil (double a)`

## Domain

ACTION, CONDITION, QUERY, BUI

## Description

Returns the smallest (closest to negative infinity) `double` value that is not less than the argument and is equal to a mathematical integer. Special cases:
If the argument value is already equal to a mathematical integer, then the result is the same as the argument.
If the argument is NaN or an infinity or positive zero or negative zero, then the result is the same as the argument.
If the argument value is less than zero but greater than -1.0, then the result is negative zero.
Note that the value of `Math.ceil(x)` is exactly the value of `-Math.floor(-x)`.

## Parameters

Name | Type | Description
--- | --- | ---
`a` | `double` | A value.

## Returns

Type | Description
--- | ---
`double` | The smallest (closest to negative infinity) floating-point value that is not less than the argument and is equal to a mathematical integer.

## Cautions

none