ceil

Gamma: Version 4.0
Prev |  | Next

# `ceil`

`ceil` -- rounds a real number up to the next integer.

## Syntax

    ceil (number)

## Arguments

`number`

  Any number. Non-numbers are treated as zero.

## Returns

The smallest integer that is greater than or equal to the `number`.

## Description

This function has the effect of rounding real numbers up to the next integer. Integers are unaffected.

## Example

        Gamma> ceil(1.1);
        2
        Gamma> ceil(-1.1);
        -1
        Gamma> ceil(4);
        4
        Gamma>

## See Also

`floor`, `round`

Prev | Home | Next
`band`, `bnot`, `bor`, `bxor` | Up | `cfand`, `cfor`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.