PHP保留两位小数(不四舍五入)

By | 2022-01-16
20

PHP保留两位小数(不四舍五入)

function FA($a){
  $result = intval($a * pow(10, 2))/ pow(10, 2);
  return $result;
}
来发评论吧~
Powered By Valine
v1.5.2