$num = 1.0258963147; // 1.0259 $num = number_format($num, 4, '.', ''); // 1 $num = number_format($num); $num = 50000; // 50,000 $num = number_format($num); // 50000.00 $num = number_format($num, 2, '.', '');
php 的 number_format使用
猜你喜欢
转载自www.cnblogs.com/arvin-an/p/9133052.html
今日推荐
周排行