Same rounding, what is the difference between TRUNC function and INT function?

The main function of Excel's TRUNC function is to round down according to the specified digit position

This article introduces the formula syntax and usage of the TRUNC function in Microsoft Excel.

TRUNC function function

The TRUNC function is used to cut off the decimal part of a number and return an integer. That is to say, the calculation retains the value after removing the specified number of bits (the result must be equal to or less than the original value).

TRUNC function format

TRUNC(number,num_digits)

Translated into the vernacular format:

TRUNC(目标单元格,要保留位数)

Parameter Description

number: Specify the value or the cell reference where the value is located. The number that needs to be truncated.

num_digits: The position of the number of digits to be rounded down. The number used to specify the rounding precision. The default value of Num_digits is 0.

Precautions for using TRUNC function:

函数TRUNC和函数INT类似,都返回整数。函数TRUNC直接去除数字的小数部分而函数INT则是依照给定数的小数部分的值,将其四舍五入到最接近的整数。函数INT和函数TRUNC在处理负数时有所不同。

TRUNC function example:
Insert picture description here

Remarks:

1. Regarding the description of the reserved digits, different reserved digits have different meanings, as shown in the following table:
**Bold style**

2. Explanation of "digit position"

Indicates the distance from the position of the decimal point to the digits. From the decimal point to the left, it is represented by a negative number, and from the decimal point to the right, it is represented by a positive number, as shown below:

·: Indicates a decimal point

○ ○ ○ · ● ● ●

-2 -1 0 1 2 3

Thank you for watching. See you in the next issue. If you have any questions, please leave a message in the comment area or send a private message to us

If you are interested in the excel function formulas, you can follow us. Before the course is updated, you can take a look at our previous courses.

Have you learnt that?

Want to learn more function knowledge, please pay attention

Guess you like

Origin blog.csdn.net/weixin_43152686/article/details/110946962
Recommended