Table of Contents
The TRUNC function in Excel is a useful tool for truncating numbers to a specified number of decimal places. This function allows users to round down a number to a desired precision, removing any digits after the specified decimal point. By using the TRUNC function, users can easily manipulate data and present it in a more concise and accurate manner. This function is especially helpful for financial calculations and data analysis where precision is crucial. Simply input the number you want to truncate and specify the number of decimal places, and the TRUNC function will automatically remove any additional digits, providing a rounded and truncated result.
This article describes the formula syntax and usage of the TRUNC function in Microsoft Excel.
Description
Truncates a number to an integer by removing the fractional part of the number.
Syntax
TRUNC(number, [num_digits])
The TRUNC function syntax has the following arguments:
Number Required. The number you want to truncate.
Num_digits Optional. A number specifying the precision of the truncation. The default value for num_digits is 0 (zero).
Remark
TRUNC and INT are similar in that both return integers. TRUNC removes the fractional part of the number. INT rounds numbers down to the nearest integer based on the value of the fractional part of the number. INT and TRUNC are different only when using negative numbers: TRUNC(-4.3) returns -4, but INT(-4.3) returns -5 because -5 is the lower number.
Cite this article
stats writer (2024). How can I use the TRUNC function in Excel to truncate a number to a specified number of decimal places?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-use-the-trunc-function-in-excel-to-truncate-a-number-to-a-specified-number-of-decimal-places/
stats writer. "How can I use the TRUNC function in Excel to truncate a number to a specified number of decimal places?." PSYCHOLOGICAL SCALES, 1 Jul. 2024, https://scales.arabpsychology.com/stats/how-can-i-use-the-trunc-function-in-excel-to-truncate-a-number-to-a-specified-number-of-decimal-places/.
stats writer. "How can I use the TRUNC function in Excel to truncate a number to a specified number of decimal places?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-use-the-trunc-function-in-excel-to-truncate-a-number-to-a-specified-number-of-decimal-places/.
stats writer (2024) 'How can I use the TRUNC function in Excel to truncate a number to a specified number of decimal places?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-use-the-trunc-function-in-excel-to-truncate-a-number-to-a-specified-number-of-decimal-places/.
[1] stats writer, "How can I use the TRUNC function in Excel to truncate a number to a specified number of decimal places?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, July, 2024.
stats writer. How can I use the TRUNC function in Excel to truncate a number to a specified number of decimal places?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
