round(),floor(),ceiling()函数的用法和区别
摘要:round() 遵循四舍五入把原值转化为指定小数位数,如:round(1.45,0) = 1;round(1.55,0)=2floor()向下舍入为指定小数位数 如:floor(1.45,0)= 1;floor(1.55,0) = 1ceiling()向上舍入为指定小数位数 如:ceiling(1.
阅读全文
posted @ 2015-02-27 10:27
posted @ 2015-02-27 10:27
posted @ 2014-12-09 22:03
posted @ 2014-11-07 14:18
posted @ 2014-10-31 14:26
posted @ 2014-09-04 11:23
posted @ 2014-08-23 11:30