CEIL(), FLOOR()

Top  Previous  Next

 

The CEIL() function returns the smallest integer not less than the argument value. The FLOOR() function returns the largest integer not greater than the argument value.

 

 

Format

 

CEIL(value)

FLOOR(value)

 

where

 

valueis a numeric value to be rounded.

 

 

If value is a numeric array, a similarly structured array of result values is returned.

 

 

Examples

 

Value

CEIL(value)

FLOOR(value)

0

0

0

3

3

3

3.1

4

3

3.7

4

3

-3

-3

-3

-3.1

-3

-4

-3.7

-3

-4

3.1VM-3.7

4VM-3

3VM-4

 

 

See also:

ROUNDDOWN(), ROUNDUP()