hehexu

博客园 首页 新随笔 联系 订阅 管理

//$tick 保留{$decimalplaces}位小数,不够位数的小数点后面用0 填充
$tick = sprintf( "%.0${decimalplaces}lf ", $i / 1000 );




 
posted on 2018-03-04 19:34  hehexu  阅读(122)  评论(0编辑  收藏  举报