Get tips for using number fields in your formulas. Learn how to work with percent
fields using decimal values and how to reference auto-number fields as text. Plus, find guidance
on mixing numbers with percentages and currencies, and understanding output limits and rounding
behavior.
Required Editions
Available in: both Salesforce Classic and Lightning Experience
Available in: All Editions
Use the decimal version of a percent when working with percent fields in formulas. For
example, IF(Probability =1...) for 100% probability
or IF(Probability =0.9...) for 90% probability.
Reference auto-number fields as text fields in formulas.
The output of your formula must be less than 19 digits.
Formulas can contain a mix of numbers, percents, and currencies as in this example:
AnnualRevenue / NumberOfEmployees.
Salesforce uses the round half up tie-breaking rule for numbers in formula fields. For
example, 12.345 becomes 12.35 and −12.345 becomes −12.35.
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.