---
schema_version: "1"
id: f82c460fb80e0073bcb233f003415f5efd43a58ce393f047cabf82c77474940a
title: MCEILING
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_mceiling.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_mceiling.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 01e70a4fb59276f4e4e1f274a9022e74d9d996b6c6bcba243bfa94633861b483
description: Rounds a number up to the nearest integer, towards zero if negative.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# MCEILING

Rounds a number up to the nearest integer, towards zero if negative.

## Use

`MCEILING(number)`

![Rounding Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

Rounding Example

`MCEILING(2.5)` returns 3, which is 2.5 rounded up to the nearest integer.

`MCEILING(-2.5)` returns -2, which is -2.5 rounded up towards zero for a negative number.