vb中round和int的区别?

来源:百度知道 编辑:UC知道 时间:2024/05/27 06:40:23
谁可以具体的讲一下他们的特点,最好有例子,谢谢。

round:返回一个数值,该数值是按照指定的小数位数进行四舍五入运算的结果。
例如:round(3.25,1)=3.3
round(4.225,2)=4.23
round(5.395,2)=5.40
int:int(x)=P 取P<=x的最大整数值!
例如:int(1.3)=1
int(5.9)=5
int(-32.3)=-33

呵呵~~