(视频)数学和三角函数:TRUNC函数 截去数字小数部分
<b>视频地址1:</b>点击观看<br><br><b>视频地址2:</b>点击观看<br><br>
<b>教程难度:</b>初级<br><br>
<b>图文教程:</b><br>
<p><span style="font-family: 微软雅黑, Microsoft YaHei;">将数字的小数部分截去,返回整数。 <br style="margin: 0px; padding: 0px; font-family: Arial, 宋体, Helvetica, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(250, 253, 255);"><br></span></p><p><strong><span style="font-family: 微软雅黑, Microsoft YaHei;">语法</span></strong><span style="font-family: 微软雅黑, Microsoft YaHei;"> <br style="margin: 0px; padding: 0px; font-family: Arial, 宋体, Helvetica, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(250, 253, 255);">TRUNC(number,num_digits) <br style="margin: 0px; padding: 0px; font-family: Arial, 宋体, Helvetica, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(250, 253, 255);">Number 需要截尾取整的数字。 <br style="margin: 0px; padding: 0px; font-family: Arial, 宋体, Helvetica, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(250, 253, 255);">Num_digits 用于指定取整精度的数字。Num_digits 的默认值为 0。 <br style="margin: 0px; padding: 0px; font-family: Arial, 宋体, Helvetica, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(250, 253, 255);"></span></p><p><strong><span style="font-family: 微软雅黑, Microsoft YaHei;"><br></span></strong></p><p><strong><span style="font-family: 微软雅黑, Microsoft YaHei;">说明</span></strong><span style="font-family: 微软雅黑, Microsoft YaHei;"> <br style="margin: 0px; padding: 0px; font-family: Arial, 宋体, Helvetica, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(250, 253, 255);">函数 TRUNC 和函数 INT 类似,都返回整数。函数 TRUNC 直接去除数字的小数部分,而函数 INT 则是依照给定</span></p><p><span style="font-family: 微软雅黑, Microsoft YaHei;">数的小数部分的值,将其四舍五入到最接近的整数。 </span></p>
頁:
[1]