Table of Contents
The TRUNC function in Google Sheets is a useful tool that allows users to truncate a number to a specified number of decimal places or to a whole number. This function can be used in various ways, such as rounding off numbers, removing unnecessary digits, or simplifying calculations. To use the TRUNC function, simply input the number or cell reference as the first argument, followed by the desired number of decimals or the value 0 for whole numbers. This function can help streamline data analysis and improve the accuracy of calculations in Google Sheets.
TRUNC
Truncates a number to a certain number of significant digits by omitting less significant digits.
Sample Usage
TRUNC(3.141592654,2)
TRUNC(A2,0)
TRUNC(1.23)
Syntax
TRUNC(value, [places])
value– The value to be truncated.places– [ OPTIONAL –0by default ] – The number of significant digits to the right of the decimal point to retain.If
placesis greater than the number of significant digits invalue, value is returned without modification.placesmay be negative, in which case the specified number of digits to the left of the decimal place are changed to zero. All digits to the right of the decimal place are discarded. If all digits ofvalueare changed to zero,TRUNCsimply returns0.
Notes
TRUNCperforms no rounding, simply discarding unwanted digits.
See Also
ROUNDUP: Rounds a number to a certain number of decimal places, always rounding up to the next valid increment.
ROUNDDOWN: The ROUNDDOWN function rounds a number to a certain number of decimal places, always rounding down to the next valid increment.
ROUND: The ROUND function rounds a number to a certain number of decimal places according to standard rules.
MROUND: Rounds one number to the nearest integer multiple of another.
INT: Rounds a number down to the nearest integer that is less than or equal to it.
FLOOR: The FLOOR function rounds a number down to the nearest integer multiple of specified significance.
CEILING: The CEILING function rounds a number up to the nearest integer multiple of specified significance.
Examples
[wpcc-iframe height=”300″ src=”https://docs.google.com/spreadsheet/pub?key=0As3tAuweYU9QdFYtSlp2MnBfNmZoMkljTTBSLWlPTGc&output=html” width=”500″]
Cite this article
stats writer (2024). How can I use the TRUNC function in Google Sheets?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-use-the-trunc-function-in-google-sheets/
stats writer. "How can I use the TRUNC function in Google Sheets?." PSYCHOLOGICAL SCALES, 30 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-use-the-trunc-function-in-google-sheets/.
stats writer. "How can I use the TRUNC function in Google Sheets?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-use-the-trunc-function-in-google-sheets/.
stats writer (2024) 'How can I use the TRUNC function in Google Sheets?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-use-the-trunc-function-in-google-sheets/.
[1] stats writer, "How can I use the TRUNC function in Google Sheets?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How can I use the TRUNC function in Google Sheets?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
