多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
``` ~~~ /** * @param $num * @param int $t * @return float|int */ function RoundTwo($num, $t = 2) { switch ($t) { case 1: $pre = 10; break; case 3: $pre = 1000; break; case 4: $pre = 10000; break; case 5: $pre = 100000; break; default : $pre = 100; break; } return floor($num * $pre) / $pre; } ~~~ ```