Excel中TRUNC函数的语法和用法
时间:2022-07-16 00:29:24
本文介绍Microsoft Excel中TRUNC函数的语法和用法。
函数说明
TRUNC函数的主要作用是将数字的小数部分截去,返回整数。
函数语法
TRUNC(number,num_digits)
TRUNC(需要截尾取整的数字,指定取整精度的数字)
TRUNC(number,num_digits)
TRUNC(需要截尾取整的数字,指定取整精度的数字)
参数说明
Number:需要截尾取整的数字。
Num_digits:用于指定取整精度的数字。Num_digits 的默认值为 0。
函数备注
函数 TRUNC 和函数 INT 类似,都返回整数。函数 TRUNC 直接去除数字的小数部分,而函数 INT 则是依照给定数的小数部分的值,将其四舍五入到最接近的整数。函数 INT 和函数 TRUNC 在处理负数时有所不同;
函数示例
公式 | 结果 | 说明(结果) |
=TRUNC(8.9) | 8 | 8.9 的整数部分 |
=TRUNC(-8.9) | -8 | -8.9 的整数部分 |
=TRUNC(PI()) | 3 | pi 的整数部分 |
以下是Excel中使用TRUNC函数效果截图
标签:TRUNC函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
word2007如何快速删除全部图片?
2023-10-08 10:43:24
![](https://img.aspxhome.com/file/2023/8/24828_0s.jpg)
如何在Word 2016中使用研究任务窗格?
2022-08-06 16:18:28
![](https://img.aspxhome.com/file/2023/5/23575_0s.jpg)
Excel2016怎么使用公式中函数计环引用功能?
2022-05-02 09:23:05
![](https://img.aspxhome.com/file/2023/8/40398_0s.jpg)
一次性去掉Word 2013文档中所有文字下波浪线的方法
2023-09-21 17:18:48
![](https://img.aspxhome.com/file/2023/3/34053_0s.jpg)
教你如何使用Word2010文档中的书签
2023-01-16 03:51:24
![](https://img.aspxhome.com/file/2023/9/29649_0s.jpg)
2007excel表格怎么设置行高
2023-09-09 04:37:47
Win10更新清理可以删除吗?Win10删除更新清理的方法
2023-05-31 07:13:41
![](https://img.aspxhome.com/file/2023/4/51814_0s.png)
Word快速选定文本的技巧
2022-04-30 19:43:31
![](https://img.aspxhome.com/file/2023/8/23978_0s.jpg)
word自动编号间距大
2023-03-13 06:03:54
![](https://img.aspxhome.com/file/2023/8/34618_0s.gif)
Office2019和365的区别是什么?Office2019和365的区别比较
2023-09-15 22:09:30
![](https://img.aspxhome.com/file/2023/0/15960_0s.jpg)
word中怎样自动生成目录
2022-08-19 14:36:56
Word九宫格图片怎么做?Word制作九宫格图片的方法
2022-08-21 22:55:49
![](https://img.aspxhome.com/file/2023/5/30865_0s.jpg)
excel表格单元格设置方法
2022-04-19 10:10:02
如何屏蔽系统更新?屏蔽系统更新实用小工具UpdateReset_Remove
2023-10-11 15:22:55
![](https://img.aspxhome.com/file/2023/6/45966_0s.gif)
Win10找不到ctfmon.exe了怎么办?怎么恢复ctfmon.exe程序?
2023-02-16 19:23:06
![](https://img.aspxhome.com/file/2023/1/52451_0s.png)
Win10电脑桌面壁纸无法设置怎么办?桌面壁纸无法设置的解决方法
2023-11-24 18:07:57
![](https://img.aspxhome.com/file/2023/4/50564_0s.png)
在Word设置页码的诀窍
2023-07-17 20:30:46
![](https://img.aspxhome.com/file/2023/3/24773_0s.png)
excel单元格如何拆分两行
2023-12-03 15:12:16
![](https://img.aspxhome.com/file/2023/8/a141338_0s.png)
excel怎么制作一个公司考勤表并计算考勤天数?
2023-01-06 17:18:40
![](https://img.aspxhome.com/file/2023/1/40491_0s.png)
如何在WPS文字中插入图形
2023-12-05 17:40:53
![](https://img.aspxhome.com/file/2023/5/a164135_0s.jpg)