WEBcnx 2023.2 is out now bringing with it a host of new features and performance enhancements. Read more.

Open navigation

CEILING Function

Applies from Version:WEBcnx 2024.1Applies to Version:


Description

Returns number rounded up, away from zero, to the nearest multiple of significance.


Syntax 

CEILING(number, significance)


The CEILING function has the following arguments:

  • number Required. The value you want to round.
  • significance Required. The multiple to which you want to round.

Returns

A rounded number


Remarks

  1. If either argument is nonnumeric, CEILING returns an error.
  2. Regardless of the sign of number, a value is rounded up when adjusted away from zero. If number is an exact multiple of significance, no rounding occurs.
  3. If number is negative, and significance is negative, the value is rounded down, away from zero.
  4. If number is negative, and significance is positive, the value is rounded up towards zero.


Examples 

ExpressionDescriptionResult
CEILING(2.5, 1)Rounds 2.5 up to nearest multiple of 1.3
CEILING(-2.5, -2)Rounds -2.5 up to nearest multiple of -2.-4
CEILING(-2.5, 2)Rounds -2.5 up to nearest multiple of 2.-2
CEILING(1.5, 0.1)Rounds 1.5 up to the nearest multiple of 0.1.1.5
CEILING(0.234, 0.01)Rounds 0.234 up to the nearest multiple of 0.01.0.24


Further Reading

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

You may like to read -