---
schema_version: "1"
id: 57e18c88e57939d3efa0ad3711cf01adf4cec417b73c15f595d1d5d057e73f96
title: ROUND
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_round.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_round.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8613d859bbb1c4e4f7e6d3135dcc9b65f658cd3a12e7429221e99fddd4faed45
description: Returns the nearest number to a number you specify, constraining the new number by a specified number of digits.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# ROUND

Returns the nearest number to a number you specify, constraining the new number by a specified number of digits.

## Use

`ROUND(number, num_digits)` and replace number with the field or expression you want rounded; replace num\_digits with the number of decimal places you want to consider when 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)

Example

`ROUND (1.5, 0)` = 2

`ROUND (1.2345, 0)` = 1

`ROUND (-1.5, 0)` = -2

`ROUND (225.49823, 2)` = 225.50

![Simple Discounting 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)

Simple Discounting Example

`ROUND(Amount-Amount* Discount_Percent__c,2)`

Use this formula to calculate the discounted amount of an opportunity rounded off to two digits. This example is a number formula field on opportunities that uses a custom percent field called Discount Percent.